java

mail@pastecode.io avatar
unknown
plain_text
a year ago
820 B
5
Indexable
Never
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.
}