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>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<artifactId>junit-dep</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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