SignatureTestpublic class SignatureTest extends TestCase
Fields Summary |
---|
private static final Signature | ACert A with valid syntax | private static final Signature | MCert A with malformed syntax | private static final Signature | BCert B with valid syntax |
Methods Summary |
---|
private static Signature[] | asArray(Signature s)
return s;
| public void | testEffectiveMatch()
assertTrue(Signature.areEffectiveMatch(asArray(A), asArray(A)));
assertTrue(Signature.areEffectiveMatch(asArray(M), asArray(M)));
assertFalse(Signature.areEffectiveMatch(asArray(A), asArray(B)));
assertTrue(Signature.areEffectiveMatch(asArray(A), asArray(M)));
assertTrue(Signature.areEffectiveMatch(asArray(M), asArray(A)));
assertTrue(Signature.areEffectiveMatch(asArray(A, M), asArray(M, A)));
assertTrue(Signature.areEffectiveMatch(asArray(A, B), asArray(M, B)));
assertFalse(Signature.areEffectiveMatch(asArray(A, M), asArray(A, B)));
| public void | testExactlyEqual()
assertTrue(Signature.areExactMatch(asArray(A), asArray(A)));
assertTrue(Signature.areExactMatch(asArray(M), asArray(M)));
assertFalse(Signature.areExactMatch(asArray(A), asArray(B)));
assertFalse(Signature.areExactMatch(asArray(A), asArray(M)));
assertFalse(Signature.areExactMatch(asArray(M), asArray(A)));
assertTrue(Signature.areExactMatch(asArray(A, M), asArray(M, A)));
|
|