Skip to content

Commit

Permalink
add unit test: noClassesShouldUseJodaTime
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis committed Oct 3, 2020
1 parent 6bb7bf1 commit 7151821
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/java/com/twilio/compliance/ComplianceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public void noClassesShouldUseJavaUtilLogging() {
NO_CLASSES_SHOULD_USE_JAVA_UTIL_LOGGING.check(twilioClasses);
}

@Test
public void noClassesShouldUseJodaTime() {
NO_CLASSES_SHOULD_USE_JODATIME.check(twilioClasses);
}

@Test
public void resourceClassSanityCheck() {
GivenClassesConjunction resourceClasses = classes().that().areAssignableTo(com.twilio.base.Resource.class).and().doNotHaveFullyQualifiedName(com.twilio.base.Resource.class.getName());
Expand Down

0 comments on commit 7151821

Please sign in to comment.