java
unknown
plain_text
2 years ago
820 B
8
Indexable
package edu.sc.cse4495.MeetingPlanner; import org.junit.Test; import static org.junit.Assert.assertThrows; public class OrganizationTest { Organization org = new Organization(); @Test public void testGetEmployee() throws Exception { final Person result = org.getEmployee("name"); } @Test public void testGetEmployee_ThrowsException() { assertThrows(Exception.class, () -> org.getEmployee("name")); } @Test public void testGetRoom() throws Exception { final Room result = org.getRoom("ID"); } @Test public void testGetRoom_ThrowsException() { assertThrows(Exception.class, () -> org.getRoom("ID")); } // Add test methods here. // You are not required to write tests for all classes. }
Editor is loading...