Commits

Egon Willighagen committed 14de72a

Added separate testing of the constructors

  • Participants
  • Parent commits 3cf00b2

Comments (0)

Files changed (2)

File src/test/java/uk/ac/cam/ch/wwmm/oscar/bjoc/io/RecoveredChemistryOutputStreamTest.java

 public class RecoveredChemistryOutputStreamTest {
 
 	@Test
+	public void testConstructor() throws Exception {
+		RecoveredChemistryOutputStream chemOut = new RecoveredChemistryOutputStream(
+			new ByteArrayOutputStream()
+		);
+		Assert.assertNotNull(chemOut);
+		chemOut.close();
+	}
+
+	@Test
 	public void testWellformedness_Wrapper() throws Exception {
 		ByteArrayOutputStream out = new ByteArrayOutputStream();
 		RecoveredChemistryOutputStream chemOut = new RecoveredChemistryOutputStream(out);

File src/test/java/uk/ac/cam/ch/wwmm/oscar/bjoc/io/RolesOutputStreamTest.java

 public class RolesOutputStreamTest {
 
 	@Test
+	public void testConstructor() throws Exception {
+		RolesOutputStream chemOut = new RolesOutputStream(
+			new ByteArrayOutputStream()
+		);
+		Assert.assertNotNull(chemOut);
+		chemOut.close();
+	}
+
+	@Test
 	public void testWellformedness_Wrapper() throws Exception {
 		ByteArrayOutputStream out = new ByteArrayOutputStream();
 		RolesOutputStream chemOut = new RolesOutputStream(out);