File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
acyclic-visitor/src/test/java/com/iluwatar/acyclicvisitor Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ public class ConfigureForDosVisitorTest {
4949 @ Test
5050 public void testVisitForZoom () {
5151 ConfigureForDosVisitor conDos = new ConfigureForDosVisitor ();
52- Zoom zoom = mock ( Zoom . class );
52+ Zoom zoom = new Zoom ( );
5353
54- (( ZoomVisitor ) conDos ) .visit (zoom );
54+ conDos .visit (zoom );
5555
5656 assertThat (logger .getLoggingEvents ()).extracting ("level" , "message" ).contains (
5757 tuple (INFO , zoom + " used with Dos configurator." ));
@@ -60,9 +60,9 @@ public void testVisitForZoom() {
6060 @ Test
6161 public void testVisitForHayes () {
6262 ConfigureForDosVisitor conDos = new ConfigureForDosVisitor ();
63- Hayes hayes = mock ( Hayes . class );
63+ Hayes hayes = new Hayes ( );
6464
65- (( HayesVisitor ) conDos ) .visit (hayes );
65+ conDos .visit (hayes );
6666
6767 assertThat (logger .getLoggingEvents ()).extracting ("level" , "message" ).contains (
6868 tuple (INFO , hayes + " used with Dos configurator." ));
Original file line number Diff line number Diff line change @@ -55,9 +55,9 @@ public void clearLoggers() {
5555 @ Test
5656 public void testVisitForZoom () {
5757 ConfigureForUnixVisitor conUnix = new ConfigureForUnixVisitor ();
58- Zoom zoom = mock ( Zoom . class );
58+ Zoom zoom = new Zoom ( );
5959
60- (( ZoomVisitor ) conUnix ) .visit (zoom );
60+ conUnix .visit (zoom );
6161
6262 assertThat (logger .getLoggingEvents ()).extracting ("level" , "message" ).contains (
6363 tuple (INFO , zoom + " used with Unix configurator." ));
You can’t perform that action at this time.
0 commit comments