diff options
author | Jiri Vanek <[email protected]> | 2012-09-05 15:46:56 +0200 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2012-09-05 15:46:56 +0200 |
commit | d770d3cb8aa41cbe3a860485bcb2c39a4f2cac40 (patch) | |
tree | e25b5a7a14a953a2fdbf9bc065a5fbf189432c49 /tests/reproducers/simple/simpletest2 | |
parent | 52b4eb32aaf143c8091d9a7d39e17a1453b82ca6 (diff) |
Added multiple-applets tests
Diffstat (limited to 'tests/reproducers/simple/simpletest2')
-rw-r--r-- | tests/reproducers/simple/simpletest2/srcs/SimpleTest2.java | 30 |
1 files changed, 27 insertions, 3 deletions
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"); + } + } |