Skip to content

Commit

Permalink
added some core tests
Browse files Browse the repository at this point in the history
Signed-off-by: Rifat Nabi <[email protected]>
  • Loading branch information
torifat committed Jun 18, 2012
1 parent fe6dbd5 commit dfaa568
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/test/java/com/omicronlab/avro/AvroTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,23 @@ public void beforeTest() {
}
}

// Core Tests
@Test
public void checkSingleton() {
assertEquals(PhoneticParser.getInstance(), PhoneticParser.getInstance());
}

@Test(expected = CloneNotSupportedException.class)
public void tryToClone() throws Exception {
avro.clone();
}

@Test(expected = Exception.class)
public void setLoaderToNull() throws Exception {
avro.setLoader(null);
avro.init();
}

// XML Configuration Tests
@Test
public void xmlTestSentances() {
Expand Down

0 comments on commit dfaa568

Please sign in to comment.