Package test.dbc.office

Examples of test.dbc.office.OfficeManager


public class Driver
{
  public void testOffice()throws Exception
  {
     System.out.println("****************** TEST OFFICE ******************");
     OfficeManager officeManager = new OfficeManager();

     Computer compA = officeManager.createComputer("comp A");
     Developer kabir = officeManager.createDeveloper("Kabir");

     officeManager.assignComputer(compA, kabir);

    
     Developer bill = officeManager.createDeveloper("Bill");

     Computer compB = officeManager.createComputer("comp B");
     officeManager.assignComputer(compB, bill);
           
     try
     {
        officeManager.createDeveloper(null);
        if (true)throw new Exception("Did not validate developer null name");
     }
     catch(RuntimeException e)
     { 
     }
View Full Code Here


  }

  public void testOffice()throws Exception
  {
     System.out.println("****************** TEST OFFICE ******************");
     OfficeManager officeManager = new OfficeManager();

     Computer compA = officeManager.createComputer("comp A");
     //officeManager.createComputer("comp B");
     Developer kabir = officeManager.createDeveloper("Kabir");

     officeManager.assignComputer(compA, kabir);

    
     Developer bill = officeManager.createDeveloper("Bill");

     Computer compB = officeManager.createComputer("comp B");
     officeManager.assignComputer(compB, bill);
           
     try
     {
        officeManager.createDeveloper(null);
        if (true)throw new Exception("Did not validate developer null name");
     }
     catch(RuntimeException e)
     { 
     }
View Full Code Here

  }

  public void testOffice()throws Exception
  {
     System.out.println("****************** TEST OFFICE ******************");
     OfficeManager officeManager = new OfficeManager();

     Computer compA = officeManager.createComputer("comp A");
     //officeManager.createComputer("comp B");
     Developer kabir = officeManager.createDeveloper("Kabir");

     officeManager.assignComputer(compA, kabir);

    
     Developer bill = officeManager.createDeveloper("Bill");

     Computer compB = officeManager.createComputer("comp B");
     officeManager.assignComputer(compB, bill);
           
     try
     {
        officeManager.createDeveloper(null);
        if (true)throw new Exception("Did not validate developer null name");
     }
     catch(RuntimeException e)
     { 
     }
View Full Code Here

public class Driver
{
  public void testOffice()throws Exception
  {
     System.out.println("****************** TEST OFFICE ******************");
     OfficeManager officeManager = new OfficeManager();

     Computer compA = officeManager.createComputer("comp A");
     Developer kabir = officeManager.createDeveloper("Kabir");

     officeManager.assignComputer(compA, kabir);

    
     Developer bill = officeManager.createDeveloper("Bill");

     Computer compB = officeManager.createComputer("comp B");
     officeManager.assignComputer(compB, bill);
           
     try
     {
        officeManager.createDeveloper(null);
        if (true)throw new Exception("Did not validate developer null name");
     }
     catch(RuntimeException e)
     { 
     }
View Full Code Here

TOP

Related Classes of test.dbc.office.OfficeManager

Copyright © 2018 www.massapicom. 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.