D | KeyPairGeneratorSpecTest.java | 36 private static final Date NOW = new Date(NOW_MILLIS - (NOW_MILLIS % 1000L)); field in KeyPairGeneratorSpecTest 39 private static final Date NOW_PLUS_10_YEARS = new Date(NOW.getYear() + 10, 0, 1); 44 SERIAL_1, NOW, NOW_PLUS_10_YEARS, 0); in testConstructor_Success() 56 assertEquals("startDate should be the one specified", NOW, spec.getStartDate()); in testConstructor_Success() 68 .setStartDate(NOW) in testBuilder_Success() 83 assertEquals("startDate should be the one specified", NOW, spec.getStartDate()); in testBuilder_Success() 92 … new KeyPairGeneratorSpec(null, TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, SERIAL_1, NOW, in testConstructor_NullContext_Failure() 101 … new KeyPairGeneratorSpec(getContext(), null, "RSA", 1024, null, TEST_DN_1, SERIAL_1, NOW, in testConstructor_NullKeystoreAlias_Failure() local 110 … new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, null, SERIAL_1, NOW, in testConstructor_NullSubjectDN_Failure() local 119 … new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, null, NOW, in testConstructor_NullSerial_Failure() local [all …]
|