test/com/sun/javadoc/T6735320/T6735320.java

changeset 1558
60caf53b98e2
parent 1052
409b104f8b86
child 2525
2eb010b6cb22
equal deleted inserted replaced
1557:017e8bdd440f 1558:60caf53b98e2
1 /* 1 /*
2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
45 return getClass().getName(); 45 return getClass().getName();
46 } 46 }
47 47
48 public static void main(String... args) { 48 public static void main(String... args) {
49 T6735320 tester = new T6735320(); 49 T6735320 tester = new T6735320();
50 if (tester.runJavadoc(ARGS) != 0) { 50 if (tester.runJavadoc(ARGS) == 0) {
51 throw new AssertionError("non-zero return code from javadoc"); 51 throw new AssertionError("zero return code from javadoc");
52 } 52 }
53 if (tester.getErrorOutput().contains("StringIndexOutOfBoundsException")) { 53 if (tester.getErrorOutput().contains("StringIndexOutOfBoundsException")) {
54 throw new AssertionError("javadoc threw StringIndexOutOfBoundsException"); 54 throw new AssertionError("javadoc threw StringIndexOutOfBoundsException");
55 } 55 }
56 } 56 }

mercurial