From d770d3cb8aa41cbe3a860485bcb2c39a4f2cac40 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Wed, 5 Sep 2012 15:46:56 +0200 Subject: Added multiple-applets tests --- .../simple/simpletest2/srcs/SimpleTest2.java | 30 +++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) (limited to 'tests/reproducers/simple/simpletest2') diff --git a/tests/reproducers/simple/simpletest2/srcs/SimpleTest2.java b/tests/reproducers/simple/simpletest2/srcs/SimpleTest2.java index 9160c62..f15278f 100644 --- a/tests/reproducers/simple/simpletest2/srcs/SimpleTest2.java +++ b/tests/reproducers/simple/simpletest2/srcs/SimpleTest2.java @@ -1,3 +1,6 @@ + +import java.applet.Applet; + /* SimpleTest2.java Copyright (C) 2011 Red Hat, Inc. @@ -35,10 +38,31 @@ obligated to do so. If you do not wish to do so, delete this exception statement from your version. */ -public class SimpleTest2{ +public class SimpleTest2 extends Applet{ + + public static void main(String[] args) { + throw new RuntimeException("Correct exception"); + } + + @Override + public void init() { + System.out.println("applet was initialised"); + } - public static void main(String[] args){ -throw new RuntimeException("Correct exception"); + @Override + public void start() { + System.out.println("applet was started"); + main(null); + } + @Override + public void stop() { + System.out.println("applet was stopped"); } + + @Override + public void destroy() { + System.out.println("applet will be destroyed"); + } + } -- cgit v1.2.3