/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
H A D | PBEKeySpecTest.java | 225 char[] result = pbeks.getPassword(); 226 if (! Arrays.equals(password, result)) { 230 result[0] ++; 233 result[0] == pbeks.getPassword()[0]); 248 byte[] result = pbeks.getSalt(); 249 if (! Arrays.equals(salt, result)) { 253 result[0] ++; 256 result[0] == pbeks.getSalt()[0]);
|
H A D | PBEParameterSpecTest.java | 69 byte[] result = pbeps.getSalt(); 70 if (! Arrays.equals(salt, result)) { 74 result[0] ++; 77 result[0] == pbeps.getSalt()[0]);
|
H A D | RC2ParameterSpecTest.java | 126 byte[] result = ps.getIV(); 127 if (! Arrays.equals(iv, result)) { 131 result[0] ++; 134 result[0] == ps.getIV()[0]);
|
H A D | RC5ParameterSpecTest.java | 195 byte[] result = ps.getIV(); 196 if (! Arrays.equals(iv, result)) { 200 result[0] ++; 203 result[0] == ps.getIV()[0]);
|
H A D | SecretKeySpecTest.java | 192 byte[] result = ks.getEncoded(); 193 if (! Arrays.equals(key, result)) { 197 result[0] ++; 200 result[0] == ks.getEncoded()[0]);
|
/external/apache-harmony/crypto/src/test/impl/java.injected/org/apache/harmony/crypto/internal/ |
H A D | NullCipherSpiTest.java | 61 assertEquals("incorrect update result", b[3+i], b1[i]); 72 assertEquals("incorrect update result", 4, spi.engineUpdate(b, 3, 4, b1, 5)); 74 assertEquals("incorrect update result", b[3+i], b1[5+i]); 87 assertEquals("incorrect doFinal result", b[3+i], b1[i]); 98 assertEquals("incorrect doFinal result", 4, spi.engineDoFinal(b, 3, 4, b1, 5)); 100 assertEquals("incorrect doFinal result", b[3+i], b1[5+i]); 131 int result = spi.engineUpdate(inbuf, outbuf); 132 assertEquals("incorrect result", b.length - 4, result); 133 for (int i = 0; i < result; [all...] |
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
H A D | LogRecordTest.java | 333 LogRecord result = (LogRecord) SerializationTest.copySerializable(lr); 334 assertNotNull(result.getResourceBundle()); 342 result = (LogRecord) SerializationTest.copySerializable(lr); 343 assertNull(result.getResourceBundle());
|
H A D | XMLFormatterTest.java | 59 String result = formatter.format(lr); 60 assertTrue(result.indexOf("<message>" + rb.getString("pattern") 62 assertTrue(result.indexOf("<key>pattern</key>") > 0); 65 result = formatter.format(lr); 66 assertTrue(result.indexOf("<message>" + rb.getString("msg") 68 assertTrue(result.indexOf("<key>msg</key>") > 0); 71 result = formatter.format(lr); 72 assertTrue(result.indexOf("<message>pattern {0, number}</message>") > 0); 73 assertTrue(result.indexOf("<key>") < 0); 77 result [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
H A D | BufferedInputStreamTest.java | 231 int result = buf.read(bytes); 232 assertEquals(3, result); 242 result = buf.read(bytes); 243 assertEquals(4, result); 375 int result = bufin.read(new byte[2], 0, 2); 376 assertTrue("Incorrect result: " + result, result == 1);
|
H A D | ByteArrayOutputStreamTest.java | 167 byte[] result = bos.toByteArray(); 168 assertEquals("Wrote incorrect bytes", "t", new String(result, 0, 169 result.length, "UTF-8")); 178 byte[] result = bos.toByteArray(); 180 new String(result, 0, result.length).equals(fileString
|
H A D | FileTest.java | 129 assertEquals("Assert 1: wrong path result ", path.getPath(), file 229 assertEquals("wrong result 1", ref1.getPath(), file1.getPath()); 231 assertEquals("wrong result 2", ref1.getPath(), file2.getPath()); 235 assertEquals("wrong result 3", ref1.getPath(), file3.getPath()); 237 assertEquals("wrong result 4", ref1.getPath(), file4.getPath()); 242 assertEquals("wrong result 5", ref2.getPath(), file5.getPath()); 253 assertEquals("wrong result 1", ref1.getPath(), file1.getPath()); 255 assertEquals("wrong result 2", ref1.getPath(), file2.getPath()); 259 assertEquals("wrong result 3", ref1.getPath(), file3.getPath()); 261 assertEquals("wrong result [all...] |
H A D | ObjectInputStreamTest.java | 1094 FieldReplacementTestClass result =
|
H A D | OutputStreamWriterTest.java | 104 String result = out.toString("utf-8"); 105 assertEquals(source, result); 470 byte[] result = out.toByteArray(); 472 isr = new InputStreamReader(new ByteArrayInputStream(result), 519 byte[] result = out.toByteArray(); 521 isr = new InputStreamReader(new ByteArrayInputStream(result), 647 String result = out.getEncoding(); 648 assertNull(result); 657 result = out.getEncoding(); 658 assertEquals("UnicodeBigUnmarked", result); [all...] |
H A D | ReaderTest.java | 46 int result = mockReader.read(charBuffer); 47 assertEquals(0, result); 61 int result = mockReader.read(charBuffer); 62 assertEquals(CHARBUFFER_REMAINING, result);
|
H A D | SequenceInputStreamTest.java | 137 int result = si.read(); 138 assertEquals(-1 , result); 173 int result = sis.read(array , 0 , 5); 174 assertEquals(-1 , result);
|
H A D | SerializationStressTest.java | 106 Class result = super.resolveClass(osClass); 107 resolvedClasses.addElement(result); 108 return result; 665 byte[] result = new byte[] { (byte) 0xac, (byte) 0xed, (byte) 0, 668 assertTrue("incorrect output", Arrays.equals(input, result)); 671 assertEquals("Wrong result from readObject()", "R", ois.readObject()); 672 assertEquals("Wrong result from readByte()", 24, ois.readByte()); 714 ResolveObjectTest result = null; 716 result = (ResolveObjectTest) ois.readObject(); 721 result [all...] |
H A D | SerializationStressTest5.java | 113 File[] result = new File[elms.size()]; 114 elms.copyInto(result); 115 return result; 184 Class[] result = new Class[resultVector.size()]; 185 resultVector.copyInto(result); 186 return result;
|
H A D | StreamTokenizerTest.java | 392 String result = tokenizer.toString(); 393 assertEquals("Token['-'], line 1", result);
|
H A D | WriterTest.java | 140 char[] result = new char[offset]; 142 result[i] = contents[i]; 144 return result;
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
H A D | CharacterTest.java | 97 int result = Character.toCodePoint('\uD800', '\uDC00'); 98 assertEquals(0x00010000, result); 100 result = Character.toCodePoint('\uD800', '\uDC01'); 101 assertEquals(0x00010001, result); 103 result = Character.toCodePoint('\uD801', '\uDC01'); 104 assertEquals(0x00010401, result); 106 result = Character.toCodePoint('\uDBFF', '\uDFFF'); 107 assertEquals(0x00010FFFF, result); 316 int result = Character.toChars(0x10000, dst, 0); 317 assertEquals(2, result); [all...] |
H A D | DoubleTest.java | 187 double result; 190 result = Double.parseDouble(originalDoubleString); 191 rawBits = Double.doubleToLongBits(result); 192 convertedString = new Double(result).toString(); 767 + ">.The expected result should be:<" + expectedString 828 + ">.The expected result should be:<" + expectedString 892 + ">.The expected result should be:<" + expectedString 956 + ">.The expected result should be:<" + expectedString 1020 + ">.The expected result should be:<" + expectedString 1084 + ">.The expected result shoul [all...] |
H A D | FloatTest.java | 90 float result = Float.parseFloat(originalFloatString); 91 rawBits = Float.floatToIntBits(result); 92 assertEquals("Original float(" + originalFloatString + ") Converted float(" + result 479 + ">.The expected result should be:<" + expectedString 528 + ">.The expected result should be:<" + expectedString 578 + ">.The expected result should be:<" + expectedString 628 + ">.The expected result should be:<" + expectedString 678 + ">.The expected result should be:<" + expectedString 728 + ">.The expected result should be:<" + expectedString 778 + ">.The expected result shoul [all...] |
H A D | MathTest.java | 189 assertEquals("If the sign is NaN, the result should be positive.", 192 assertTrue("The result should be NaN.", Double.isNaN(Math.copySign( 203 "If the sign is positive, the result should be positive.", 208 "If the sign is negative, the result should be negative.", 214 assertTrue("The result should be NaN.", Double.isNaN(Math.copySign( 261 assertEquals("If the sign is NaN, the result should be positive.", 264 assertTrue("The result should be NaN.", Float.isNaN(Math.copySign( 274 "If the sign is positive, the result should be positive.", 279 "If the sign is negative, the result should be negative.", 285 assertTrue("The result shoul [all...] |
H A D | StrictMathTest.java | 192 assertEquals("If the sign is NaN, the result should be positive.", 195 assertTrue("The result should be NaN.", Double.isNaN(StrictMath 206 "If the sign is positive, the result should be positive.", 211 "If the sign is negative, the result should be negative.", 217 assertTrue("The result should be NaN.", Double.isNaN(StrictMath 257 assertEquals("If the sign is NaN, the result should be positive.", 260 assertTrue("The result should be NaN.", Float.isNaN(StrictMath 270 "If the sign is positive, the result should be positive.", 275 "If the sign is negative, the result should be negative.", 281 assertTrue("The result shoul [all...] |
H A D | String2Test.java | 364 byte[] result = null; 368 result = string.getBytes("8859_1"); 370 assertEquals((byte) i, result[0]); 377 assertTrue(result[0] == '?' || result[0] == 0x1a); 382 result = string.getBytes("UTF8"); 385 result.length == length); 388 (i < 0x80 && result[0] == i) 391 && result[0] == (byte) (0xc0 | ((i & 0x7c0) >> 6)) && result[ [all...] |