/** @throws Exception On test failure. */ @Test(groups = {"asn1"}) public void testEquals() throws Exception { Assert.assertTrue(new DERPath("/SEQ[0]/OCTSTR[1]").equals(new DERPath("/SEQ[0]/OCTSTR[1]"))); Assert.assertFalse(new DERPath("/SEQ[0]/OCTSTR[1]").equals(new DERPath("/SEQ[0]/OCTSTR[2]"))); Assert.assertFalse(new DERPath("/SEQ[0]/OCTSTR[1]").equals(new DERPath("/SEQ/OCTSTR[2]"))); }
/** * @param testPath to test * @param expected to test * * @throws Exception On test failure. */ @Test(groups = {"asn1"}, dataProvider = "paths") public void testEquals(final String testPath, final String expected) throws Exception { Assert.assertTrue(new DERPath(testPath).equals(new DERPath(expected))); } }