/openjdk7/jdk/test/java/util/Calendar/ |
H A D | WeekDateTest.java | 82 int[] expected = dates[0]; 89 if (cal.get(YEAR) != expected[0] 90 || cal.get(MONTH)+1 != expected[1] 91 || cal.get(DAY_OF_MONTH) != expected[2]) { 92 String s = String.format("got=%4d-%02d-%02d, expected=%4d-%02d-%02d", 94 expected[0], expected[1], expected[2]); 101 "got=%4d-W%02d-%d, expected=%4d-W%02d-%d (not ISO day-of-week)", 125 String s = String.format("first day: got %d, expected [all...] |
/openjdk7/jdk/test/sun/security/krb5/auto/ |
H A D | BadKdc.java | 70 public static void go(String... expected) argument 73 go0(expected); 86 public static void go0(String... expected) argument 114 test(expected[0]); 115 test(expected[1]); 117 test(expected[2]); 121 test(expected[3]); 123 test(expected[4]); 138 private static void test(String expected) throws Exception { argument 142 test0(bo, expected); 155 test0(ByteArrayOutputStream bo, String expected) argument [all...] |
/openjdk7/jdk/test/sun/tools/native2ascii/ |
H A D | Native2AsciiTests.sh | 43 expected=$1; shift 50 sed -e 's@\\r@@g' $expected >$out.expected 53 cp $expected $out.expected 55 if (set -x; diff -c $out.expected $out.1); then 69 check 4630463 $TESTSRC/A2N_4630463.expected x.out 73 # Ensure that output file is as expected by comparing to expected output. 84 check 4636448 $TESTSRC/N2A_4636448.expected [all...] |
/openjdk7/jdk/src/share/classes/sun/net/www/http/ |
H A D | KeepAliveStream.java | 56 public KeepAliveStream(InputStream is, ProgressSource pi, long expected, HttpClient hc) { argument 57 super(is, pi, expected); 83 if (expected > count) { 84 long nskip = (long) (expected - count); 91 } else if (expected <= KeepAliveStreamCleaner.MAX_DATA_REMAINING && !hurried) { 131 if (closed || count >= expected) { 133 } else if (in.available() < (expected - count)) { 140 int size = (int) (expected - count); 200 return expected - count;
|
/openjdk7/jdk/test/java/rmi/server/RMIClassLoader/useCodebaseOnlyDefault/ |
H A D | UseCodebaseOnlyDefault.java | 44 * usage: UseCodebaseOnlyDefault expected 46 * 'expected' is the expected value of useCodebaseOnly, which 76 boolean expected; 78 expected = true; 80 expected = false; 84 System.out.println("expected = " + expected); 97 if (expected != actual) 98 throw new AssertionError("actual does not match expected valu [all...] |
/openjdk7/jdk/test/java/text/Bidi/ |
H A D | Bug7042148.java | 65 boolean expected = (dirFlag == Bidi.DIRECTION_LEFT_TO_RIGHT); 69 if (got != expected) { 73 "\n\tExpected=" + expected + 83 if (got != expected) { 87 "\n\tExpected=" + expected +
|
H A D | Bug7051769.java | 55 String expected = "sun.text.bidi.BidiBase[dir: 2 baselevel: 1 length: 9 runs: [1 1 1 1 1 1 1 2 2] text: [0x623 0x643 0x62a 0x648 0x628 0x631 0x20 0x661 0x660]]"; 64 if (!got.equals(expected)) { 67 "\n\tExpected=" + expected +
|
/openjdk7/jdk/test/demo/zipfs/ |
H A D | PathOps.java | 69 void check(Object result, String expected) { argument 70 out.format("\tExpected: %s\n", expected); 73 if (expected == null) return; 76 if (expected != null && result.toString().equals(expected.toString())) 82 void check(Object result, boolean expected) { argument 83 check(result, Boolean.toString(expected)); 86 PathOps root(String expected) { argument 89 check(path.getRoot(), expected); 93 PathOps parent(String expected) { argument 100 name(String expected) argument 107 element(int index, String expected) argument 114 subpath(int startIndex, int endIndex, String expected) argument 167 resolve(String other, String expected) argument 174 relativize(String other, String expected) argument 182 normalize(String expected) argument 189 string(String expected) argument [all...] |
/openjdk7/jdk/test/java/lang/Math/ |
H A D | HyperbolicTests.java | 271 // Result and expected are the same. 307 * So, we can calculate the approximate expected result as 328 * than exp(x+offset) alone. (The expected result cannot be 337 double expected = 341 failures += testSinhCaseWithUlpDiff(input, expected, 4.0); 349 // Result and expected are the same. 358 double expected, 363 expected, tolerance); 366 -expected, tolerance); 370 expected, toleranc 357 testSinhCaseWithTolerance(double input, double expected, double tolerance) argument 377 testSinhCaseWithUlpDiff(double input, double expected, double ulps) argument 715 testCoshCaseWithTolerance(double input, double expected, double tolerance) argument 735 testCoshCaseWithUlpDiff(double input, double expected, double ulps) argument 1009 testTanhCaseWithTolerance(double input, double expected, double tolerance) argument 1029 testTanhCaseWithUlpDiff(double input, double expected, double ulps) argument [all...] |
/openjdk7/hotspot/test/compiler/6805724/ |
H A D | Test6805724.java | 59 long expected = fint(a); 62 if (result != expected) 63 throw new InternalError(result + " != " + expected);
|
/openjdk7/jdk/test/com/sun/jdi/sde/ |
H A D | SourceDebugExtensionTest.java | 59 String expected = "An expected attribute string"; 61 if (!sde.equals(expected)) { 63 "' expected: '" + expected + "'");
|
/openjdk7/jdk/test/java/awt/Graphics2D/TransformSetGet/ |
H A D | TransformSetGet.java | 48 final AffineTransform expected = sg2d.cloneTransform(); 53 if (!expected.equals(actual)) { 54 System.out.println("Expected = " + expected);
|
/openjdk7/jdk/test/java/beans/XMLEncoder/6380849/ |
H A D | TestPersistenceDelegate.java | 51 private static void test(Class<?> type, Class<? extends PersistenceDelegate> expected) { argument 53 if ((actual == null) && (expected != null)) { 54 throw new Error("expected delegate is not found"); 56 if ((actual != null) && !actual.getClass().equals(expected)) {
|
/openjdk7/jdk/test/java/io/ByteArrayInputStream/ |
H A D | Skip.java | 34 long toskip, long expected) 41 expected); 54 if (skipped != expected) { 33 dotest(InputStream in, int curpos, long total, long toskip, long expected) argument
|
/openjdk7/jdk/test/java/io/DataInputStream/ |
H A D | SkipBytes.java | 34 int toskip, int expected) { 40 System.err.println("Expected result = " + expected); 43 if (skipped != expected) { 45 ("DataInputStream.skipBytes does not return expected value"); 33 dotest(DataInputStream dis, int pos, int total, int toskip, int expected) argument
|
/openjdk7/jdk/test/java/io/InputStream/ |
H A D | Skip.java | 36 long total , long toskip , long expected) 46 expected); 52 if ((skipped < 0) || (skipped > expected)) { 35 dotest(InputStream in , int curpos , long total , long toskip , long expected) argument
|
/openjdk7/jdk/test/java/io/LineNumberInputStream/ |
H A D | Skip.java | 36 long total , long toskip , long expected) 46 expected); 52 if ((skipped < 0) || (skipped > expected)) { 35 dotest(LineNumberInputStream in , int curpos , long total , long toskip , long expected) argument
|
/openjdk7/jdk/test/javax/management/ObjectInstance/ |
H A D | ToStringMethodTest.java | 46 final String expected = className+"["+on.toString()+"]"; 48 if (!expected.equals(oi.toString())) { 50 "of the ObjectInstance class, expected to get "+ 51 expected+", but got "+oi.toString()); 64 "of the Attribute class, expected to get "+exp+
|
/openjdk7/langtools/test/tools/javac/api/ |
H A D | T6395981.java | 45 Set<SourceVersion> expected = EnumSet.noneOf(SourceVersion.class); 47 expected.add(SourceVersion.valueOf(arg)); 50 for (SourceVersion version : expected) {
|
/openjdk7/langtools/test/tools/javadoc/enum/docComments/ |
H A D | Main.java | 72 private static boolean checkComment(String found, String expected) { argument 73 System.out.println("expected: \"" + expected + "\""); 75 return expected.equals(found);
|
/openjdk7/jdk/test/sun/nio/cs/ |
H A D | StreamEncoderClose.java | 34 byte[] expected = {(byte)0x1b,(byte)0x24,(byte)0x42, 48 if (out.length != expected.length) { 53 if (out[i] != expected[i])
|
/openjdk7/jdk/test/java/math/BigDecimal/ |
H A D | CompareToTests.java | 39 // First operand, second operand, expected compareTo result 69 int expected = testCase[2].intValue(); 71 failures += compareToTest(a, b, expected); 74 failures += compareToTest(a_negate, b_negate, -expected); 81 private static int compareToTest(BigDecimal a, BigDecimal b, int expected) { argument 83 int failed = (result==expected) ? 0 : 1; 86 "\n\tExpected " + expected);
|
/openjdk7/jdk/test/java/math/BigInteger/ |
H A D | CompareToTests.java | 39 // First operand, second operand, expected compareTo result 69 int expected = testCase[2].intValue(); 71 failures += compareToTest(a, b, expected); 74 failures += compareToTest(a_negate, b_negate, -expected); 81 private static int compareToTest(BigDecimal a, BigDecimal b, int expected) { argument 83 int failed = (result==expected) ? 0 : 1; 86 "\n\tExpected " + expected);
|
/openjdk7/jdk/test/java/lang/Class/ |
H A D | IsAnnotationType.java | 37 static int test(Class clazz, boolean expected) { argument 38 int status = (clazz.isAnnotation() == expected)?0:1;
|
/openjdk7/jdk/test/java/lang/Integer/ |
H A D | ParsingTest.java | 77 private static void check(String val, int expected) { argument 79 if (n != expected)
|