@@ -0,0 +1,1292 @@
+package test;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport java.awt.event.ActionEvent;%0A%0Aimport model.PlayerModel;%0A%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport controller.PlayerLevelSelectCtrl;%0Aimport boundary.PlayerApplication;%0Aimport boundary.PlayerLevelSelectView;%0Aimport boundary.ResourceLoader;%0A%0Apublic class TestPlayerLevelSelectView %7B%0A%09PlayerApplication app;%0A%09PlayerModel model;%0A%09ResourceLoader loader;%0A%09%0A%09@Before%0A%09public void setUp() %7B%0A%09    loader = new ResourceLoader();%0A%09    model = new PlayerModel();%0A%09    app = new PlayerApplication(model, loader);%0A%09%7D%0A%09%0A%09@After%0A%09public void tearDown() %7B%0A%09%09app.dispose();%0A%09%09app = null;%0A%09%7D%0A%09%0A%09@Test%0A%09public void test() %7B%0A%09%09//Set the context window%0A%09%09app.setView(new PlayerLevelSelectView(app,model));%0A%09%09assertTrue(app.getView() instanceof PlayerLevelSelectView);%0A%09%09//Load a level%0A%09%09ActionEvent event1 = new ActionEvent(((PlayerLevelSelectView) app.getView()).selectButtons%5B0%5D, 0, %22yes%22);%0A%09%09new PlayerLevelSelectCtrl(app, model,%221%22).actionPerformed(event1);%0A%09%09assertTrue(((PlayerLevelSelectView) app.getView()).lblLevel.getText().equals(%22Level 1%22));%0A%09%09assertTrue(((PlayerLevelSelectView) app.getView()).lblType.getText().equals(%22Type: Puzzle%22));%0A%09%09%0A%09%09%0A%09%09//assertTrue((PlayerLevelSelectView) app.getView());%0A%09%09%0A%09%7D%0A%0A%7D%0A

Add Test for PlayerLevelSelectView