Examples of Teaches


Examples of com.github.C204_242_DJSMT.Assignment_2.Teaches

  }
 
  @Test public void createDeleteTest() {
    Teacher t = new Teacher("Name");
    ClassGroup cls = new ClassGroup("Name", "description");
    Teaches te = TeachingManager.getInstance().add(t, cls);
    Assert.assertTrue(TeachingManager.getInstance().contains(te));
    Assert.assertTrue(TeachingManager.getInstance().delete(te));
    Assert.assertFalse(TeachingManager.getInstance().contains(te));
  }
View Full Code Here

Examples of com.github.C204_242_DJSMT.Assignment_2.Teaches

public class TeachesTest {
  Teacher testTeacher = new Teacher("name");
  ClassGroup testClass = new ClassGroup("name", "description");
 
  @Test public void creationTest1() {
    new Teaches(testClass, testTeacher);
  }
View Full Code Here

Examples of com.github.C204_242_DJSMT.Assignment_2.Teaches

    new Teaches(testClass, testTeacher);
  }
 
  @Test (expected=IllegalArgumentException.class)
  public void creationTest2() {
    new Teaches(null, testTeacher);
  }
View Full Code Here

Examples of com.github.C204_242_DJSMT.Assignment_2.Teaches

    new Teaches(null, testTeacher);
  }
 
  @Test (expected=IllegalArgumentException.class)
  public void creationTest3() {
    new Teaches(testClass, null);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.