Home
last modified time | relevance | path

Searched refs:ps2 (Results 1 – 4 of 4) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DRC2ParameterSpecTest.java150 RC2ParameterSpec ps2 = new RC2ParameterSpec(effectiveKeyBits, iv); in testEquals() local
159 ps1.equals(ps2)); in testEquals()
162 ps2.equals(ps1)); in testEquals()
165 ps2.equals(ps3)); in testEquals()
174 ps2 = new RC2ParameterSpec(11, iv); in testEquals()
175 assertFalse("Objects should not be equal.", ps1.equals(ps2)); in testEquals()
177 ps2 = new RC2ParameterSpec(11, new byte[] {9, 8, 7, 6, 5, 4, 3, 2, 1}); in testEquals()
178 assertFalse("Objects should not be equal.", ps1.equals(ps2)); in testEquals()
190 RC2ParameterSpec ps2 = new RC2ParameterSpec(effectiveKeyBits, iv); in testHashCode() local
193 ps1.hashCode() == ps2.hashCode()); in testHashCode()
[all …]
DRC5ParameterSpecTest.java222 RC5ParameterSpec ps2 = new RC5ParameterSpec(version, rounds, in testEquals() local
231 ps1.equals(ps2)); in testEquals()
234 ps2.equals(ps1)); in testEquals()
237 ps2.equals(ps3)); in testEquals()
246 ps2 = new RC5ParameterSpec(version+1, rounds, wordSize, iv); in testEquals()
247 assertFalse("Objects should not be equal.", ps1.equals(ps2)); in testEquals()
249 ps2 = new RC5ParameterSpec(version, rounds+1, wordSize, iv); in testEquals()
250 assertFalse("Objects should not be equal.", ps1.equals(ps2)); in testEquals()
252 ps2 = new RC5ParameterSpec(version, rounds, wordSize/2, iv); in testEquals()
253 assertFalse("Objects should not be equal.", ps1.equals(ps2)); in testEquals()
[all …]
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetTest.java129 PreparedStatement ps2 = null; in testClose() local
142 ps2 = conn.prepareStatement("select * from t1 whe a like '?000'"); in testClose()
146 ResultSet rs2 = ps2.executeQuery(); in testClose()
166 ps2.close(); in testClose()
170 if (ps2 != null) ps2.close(); in testClose()
DOldPreparedStatementTest.java1069 PreparedStatement ps2 = null; in testSetShort() local
1116 ps2 = conn.prepareStatement(query2); in testSetShort()
1117 ps2.setShort(1, Short.MAX_VALUE); in testSetShort()
1118 ps2.execute(); in testSetShort()
1128 ps2.close(); in testSetShort()