@@ -0,0 +1,853 @@
+public class TradeWithFriendsTest extends AcitivityInstrumentationTestCase2 %7B%0A%0A%09public void testComposeNormalTrade() %7B%0A%09%09Trade trade = new Trade(new NormalTrade());%0A%09%09Inventory inventory;%0A%09%09Owner owner;%0A%09%09Borrower me;%0A%09%09trade.addInventory(inventory);%0A%09%09trade.initiateTrade(me, owner);%0A%09%09assertEquals(trade.getTradeStatus(), %22SENT%22);%0A%09%7D%0A%0A%09public void testTradeAccepted() %7B%0A%09%09Trade trade = new Trade(new NormalTrade());%0A%09%09Inventory inventory;%0A%09%09Owner owner;%0A%09%09Borrower me;%0A%09%09trade.addInventory(inventory);%0A%09%09trade.initiateTrade(me, owner);%0A%09%09assertEquals(trade.getTradeStatus(), %22ACCEPTED%22);%0A%09%7D%0A%0A%09public void testTradeDeclined() %7B%0A%09%09Trade trade = new Trade(new NormalTrade());%0A%09%09Inventory inventory;%0A%09%09Owner owner;%0A%09%09Borrower me;%0A%09%09trade.addInventory(inventory);%0A%09%09trade.initiateTrade(me, owner);%0A%09%09assertEquals(trade.getTradeStatus(), %22DECLINED%22);%0A%09%7D%0A%0A%0A%7D

test cases for TradeWithFriends