Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascs committed Mar 9, 2010
1 parent 1ba5759 commit 1b70f37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -27,9 +27,10 @@ public void setUp() throws Exception {

@Test
public void shouldAddGivenClassesToAnnotationConfiguration() throws Exception {
factory.addEntity(MockedClass.class);
AnnotationConfigurationFactory.addEntity(MockedClass.class);
factory.addEntitiesToConfiguration();
verify(configuration).addAnnotatedClass(MockedClass.class);
AnnotationConfigurationFactory.getEntities().clear();

}
}
Expand Up @@ -58,7 +58,7 @@ public void registersClassIfItIsAVRaptorType() throws IOException {
public void shouldAddEntitiesToAnnotationConfiguration() throws IOException {
parser.parse(jarWithClass(AnEntity.class));

assertThat(AnnotationConfigurationFactory.getEntities().size(), is(1));
assertThat(AnnotationConfigurationFactory.getEntities().toString(), AnnotationConfigurationFactory.getEntities().size(), is(1));
assertEquals(AnnotationConfigurationFactory.getEntities().get(0), AnEntity.class);
}

Expand Down

0 comments on commit 1b70f37

Please sign in to comment.