Skip to content

Commit

Permalink
Refactord ASM Test
Browse files Browse the repository at this point in the history
  • Loading branch information
ABHAY0O7 committed Aug 20, 2021
1 parent ada4b1e commit 8342536
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ void test_for_proper_asm_functioning() throws IOException {
// Confirms that after analyzing there were no annotations in the test class.
Assertions.assertEquals(0, ClassMembersVisitorCounter.getNbVisitedAnnotations());

// Confirms that after analyzing there was only 1 field in the test class.
Assertions.assertEquals(1, ClassMembersVisitorCounter.getNbVisitedFields());
// Confirms that after analyzing there were some fields in the test class.
Assertions.assertNotEquals(0, ClassMembersVisitorCounter.getNbVisitedFields());

// Confirms that after analyzing there were 3 methods in the test class.
Assertions.assertEquals(3, ClassMembersVisitorCounter.getNbVisitedMethods());
// Confirms that after analyzing there were some methods in the test class.
Assertions.assertNotEquals(0, ClassMembersVisitorCounter.getNbVisitedMethods());

// Confirms that after analyzing there was only 1 type in the test class.
Assertions.assertEquals(1, ClassMembersVisitorCounter.getNbVisitedTypes());
// Confirms that after analyzing there were some types in the test class.
Assertions.assertNotEquals(0, ClassMembersVisitorCounter.getNbVisitedTypes());

// Confirms that the result of analyzed data has been collected successfully.
Assertions.assertFalse(resultCollector.getDependencies().isEmpty());
Expand Down

0 comments on commit 8342536

Please sign in to comment.