forked from john-bai/DesignPatterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBridgeTest.java
More file actions
41 lines (35 loc) · 872 Bytes
/
Copy pathBridgeTest.java
File metadata and controls
41 lines (35 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package designpatterns;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author jtherrell
*/
public class BridgeTest {
/**
* Test of draw method, of class IconWindow.
*/ @Test
public void testIconWindowDraw() {
Log log = new Log();
IconWindow icon = new IconWindow(log);
icon.draw();
String expResult = "hellohellohellohelloworld";
String result = log.toString();
assertEquals(expResult, result);
}
/**
* Test of draw method, of class TransientWindow.
*/ @Test
public void testTransientWindowDraw() {
Log log = new Log();
TransientWindow transWin = new TransientWindow(log);
transWin.draw();
String expResult = "wowwowwowwow";
String result = log.toString();
assertEquals(expResult, result);
}
}