File tree Expand file tree Collapse file tree 9 files changed +23
-9
lines changed Expand file tree Collapse file tree 9 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 1515 <dependencies >
1616 <dependency >
1717 <groupId >junit</groupId >
18- <artifactId >junit</artifactId >
19- <version >3.8.1 </version >
18+ <artifactId >junit-dep </artifactId >
19+ <version >4.11 </version >
2020 <scope >test</scope >
2121 </dependency >
2222 </dependencies >
Original file line number Diff line number Diff line change 1+ package com .iluwatar ;
2+
13import java .io .BufferedReader ;
24import java .io .File ;
35import java .io .FileReader ;
@@ -75,4 +77,4 @@ public boolean fileExists() {
7577 public boolean isLoaded () {
7678 return this .loaded ;
7779 }
78- }
80+ }
Original file line number Diff line number Diff line change 1+ package com .iluwatar ;
2+
13import java .awt .Color ;
24import java .awt .event .ActionEvent ;
35import java .awt .event .ActionListener ;
@@ -195,4 +197,4 @@ public void showMessage(String message) {
195197 public void displayData (String data ) {
196198 this .area .setText (data );
197199 }
198- }
200+ }
Original file line number Diff line number Diff line change 1+ package com .iluwatar ;
2+
13/**
24 * Every instance of this class represents the Presenter component
35 * in the Model-View-Presenter architectural pattern.
@@ -71,4 +73,4 @@ public void confirmed() {
7173 public void cancelled () {
7274 view .close ();
7375 }
74- }
76+ }
Original file line number Diff line number Diff line change 1+ package com .iluwatar ;
2+
13/**
24 * Every instance of this class represents the Stub component in
35 * the Model-View-Presenter architectural pattern.
@@ -104,4 +106,4 @@ public int getMessagesSent() {
104106 public boolean dataDisplayed () {
105107 return this .dataDisplayed ;
106108 }
107- }
109+ }
Original file line number Diff line number Diff line change 1+ package com .iluwatar ;
2+
13/**
24 * This interface represents the View component in the
35 * Model-View-Presenter pattern. It can be implemented
@@ -57,4 +59,4 @@ public interface FileSelectorView {
5759 * @param data The data to be written.
5860 */
5961 public void displayData (String data );
60- }
62+ }
Original file line number Diff line number Diff line change 1+ package com .iluwatar ;
12
23public class MainApp {
34
Original file line number Diff line number Diff line change 1+ package com .iluwatar ;
2+
13import static org .junit .Assert .*;
24
35import org .junit .Before ;
79 * This test case is responsible for testing our application
810 * by taking advantage of the Model-View-Controller architectural pattern.
911 */
10- public class FileselectorPresenterTest {
12+ public class FileSelectorPresenterTest {
1113
1214 /**
1315 * The Presenter component.
Original file line number Diff line number Diff line change 3636 <module >iterator</module >
3737 <module >mediator</module >
3838 <module >memento</module >
39+ <module >model-view-presenter</module >
3940 <module >observer</module >
4041 <module >state</module >
4142 <module >strategy</module >
5960 </plugins >
6061</build >
6162
62- </project >
63+ </project >
You can’t perform that action at this time.
0 commit comments