Made some overall changes.

This commit is contained in:
pitsios-s 2014-09-12 12:20:13 +03:00
parent 9f00e00f34
commit eeb8c58fe9
9 changed files with 23 additions and 9 deletions

View File

@ -15,8 +15,8 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit-dep</artifactId>
<version>3.8.1</version> <version>4.11</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -1,3 +1,5 @@
package com.iluwatar;
import java.io.BufferedReader; import java.io.BufferedReader;
import java.io.File; import java.io.File;
import java.io.FileReader; import java.io.FileReader;
@ -75,4 +77,4 @@ public class FileLoader {
public boolean isLoaded() { public boolean isLoaded() {
return this.loaded; return this.loaded;
} }
} }

View File

@ -1,3 +1,5 @@
package com.iluwatar;
import java.awt.Color; import java.awt.Color;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
import java.awt.event.ActionListener; import java.awt.event.ActionListener;
@ -195,4 +197,4 @@ public class FileSelectorJFrame extends JFrame implements FileSelectorView, Acti
public void displayData(String data) { public void displayData(String data) {
this.area.setText(data); this.area.setText(data);
} }
} }

View File

@ -1,3 +1,5 @@
package com.iluwatar;
/** /**
* Every instance of this class represents the Presenter component * Every instance of this class represents the Presenter component
* in the Model-View-Presenter architectural pattern. * in the Model-View-Presenter architectural pattern.
@ -71,4 +73,4 @@ public class FileSelectorPresenter {
public void cancelled() { public void cancelled() {
view.close(); view.close();
} }
} }

View File

@ -1,3 +1,5 @@
package com.iluwatar;
/** /**
* Every instance of this class represents the Stub component in * Every instance of this class represents the Stub component in
* the Model-View-Presenter architectural pattern. * the Model-View-Presenter architectural pattern.
@ -104,4 +106,4 @@ public class FileSelectorStub implements FileSelectorView {
public boolean dataDisplayed() { public boolean dataDisplayed() {
return this.dataDisplayed; return this.dataDisplayed;
} }
} }

View File

@ -1,3 +1,5 @@
package com.iluwatar;
/** /**
* This interface represents the View component in the * This interface represents the View component in the
* Model-View-Presenter pattern. It can be implemented * Model-View-Presenter pattern. It can be implemented
@ -57,4 +59,4 @@ public interface FileSelectorView {
* @param data The data to be written. * @param data The data to be written.
*/ */
public void displayData(String data); public void displayData(String data);
} }

View File

@ -1,3 +1,4 @@
package com.iluwatar;
public class MainApp { public class MainApp {

View File

@ -1,3 +1,5 @@
package com.iluwatar;
import static org.junit.Assert.*; import static org.junit.Assert.*;
import org.junit.Before; import org.junit.Before;
@ -7,7 +9,7 @@ import org.junit.Test;
* This test case is responsible for testing our application * This test case is responsible for testing our application
* by taking advantage of the Model-View-Controller architectural pattern. * by taking advantage of the Model-View-Controller architectural pattern.
*/ */
public class FileselectorPresenterTest { public class FileSelectorPresenterTest {
/** /**
* The Presenter component. * The Presenter component.

View File

@ -36,6 +36,7 @@
<module>iterator</module> <module>iterator</module>
<module>mediator</module> <module>mediator</module>
<module>memento</module> <module>memento</module>
<module>model-view-presenter</module>
<module>observer</module> <module>observer</module>
<module>state</module> <module>state</module>
<module>strategy</module> <module>strategy</module>
@ -59,4 +60,4 @@
</plugins> </plugins>
</build> </build>
</project> </project>