@@ -0,0 +1,2887 @@
+import android.test.ActivityInstrumentationTestCase2;%0Aimport java.util.ArrayList;%0A%0A// Test use cases relating to Inventory%0Apublic class InventoryTest extends ActivityInstrumentationTestCase2 %7B%0A%0A    public InventoryTest() %7B%0A%09      super(MainActivity.class);%0A    %7D%0A%0A    // Test that a service is added and done correctly%0A    public void testAddService() %7B%0A%09      Owner owner = new Owner(%22Bill%22);%0A%0A    %09  // serviceList should be null%0A        ArrayList%3CService%3E serviceList = owner.getServices();%0A%09      assertEquals(owner.getServices().size(), 0);%0A%0A%09      Service service0 = new Service(%22Lawnmowing%22, %22General Labour%22, %22description%22);%0A%09      Service service1 = new Service(%22Plumbling%22, %22Construction%22, %22description%22);%0A%09      owner.addService(service1);%0A%09      assertEquals(owner.getServices().size(), 1);%0A%09      owner.addService(service2);%0A%09      assertEquals(owner.getServices().size(), 2);%0A%0A%09      assertEquals(owner.getServices().get(0), service0);%0A%09      assertEquals(owner.getServices().get(1), service1);%0A    %7D%0A%0A    public void testViewInventory() %7B%0A%09      Owner owner = new Owner(%22Harry%22);%0A%0A%09      Service service0 = new Service(%22Lawnmowing%22, %22General Labour%22, %22description%22);%0A%09      Service service1 = new Service(%22Plumbling%22, %22Construction%22, %22description%22);%0A%0A%09      ArrayList%3CService%3E serviceList = new ArrayList%3CService%3E();%0A%09      serviceList.add(service0);%0A%09      owner.addService(service0);%0A%09      assertEquals(owner.viewInventory(), serviceList);%0A    %7D%0A%0A    public void testDeleteService() %7B%0A%09      Owner owner = new Owner(%22Jim%22);%0A%0A%09      Service service0 = new Service(%22Lawnmowing%22, %22General Labour%22, %22description%22);%0A%09      Service service1 = new Service(%22Plumbling%22, %22Construction%22, %22description%22);%0A%09      Service service2 = new Service(%22Math Help%22, %22Tutoring%22, %22description%22);%0A%0A%09      owner.addService(service0);%0A%09      owner.addService(service1);%0A%09      assertEquals(owner.getServices().size(), 2);%0A%0A%09      owner.deleteService(service0);%0A%09      assertEquals(owner.getServices().size(), 1);%0A%0A%09      owner.addService(service2);%0A%09      owner.deleteService(service1);%0A%09      assertEquals(owner.getServices().size(), 1);%0A%0A%09      owner.deleteService(service2);%0A%09      assertEquals(owner.getServices().size(), 0);%0A    %7D%0A%0A    public void testShareable() %7B%0A%09      Service service0 = new Service(%22Lawnmowing%22, %22General Labour%22, %22description%22);%0A%09      service0.setShareable(true);%0A%09      assertTrue(service0.isShareable());%0A    %7D%0A%0A    public void testEdit() %7B%0A%09      Service service0 = new Service(%22Haircutting%22, %22Other%22, %22description%22);%0A%09      service0.editDescription(%22new description%22);%0A%09      assertEquals(service0.getDescription(), %22new description%22);%0A    %7D%0A%0A    public void testCategory() %7B%0A%09      Service service0 = new Service(%22Teeth Cleaning%22, %22description%22);%0A%09      service0.chooseCategory(%22Healthcare%22);%0A%09      assertEquals(service0.getCategory(), %22Healthcare%22);%0A    %7D%0A%0A%7D%0A

Create InventoryTest.java