Made some overall changes.
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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();
 | 
			
		||||
	}	
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,4 @@
 | 
			
		||||
package com.iluwatar;
 | 
			
		||||
 | 
			
		||||
public class MainApp {
 | 
			
		||||
	
 | 
			
		||||
 
 | 
			
		||||
@@ -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.
 | 
			
		||||
		Reference in New Issue
	
	Block a user