forked from onlyliuxin/coding2017
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gongxun
committed
Apr 26, 2017
1 parent
f622e29
commit 417d7ca
Showing
2 changed files
with
58 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package queue; | ||
|
||
import org.junit.After; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
/** | ||
* Created by gongxun on 2017/4/26. | ||
*/ | ||
public class QueueWithTwoStacksTest { | ||
|
||
private QueueWithTwoStacks queue; | ||
|
||
@Before | ||
public void startUp() { | ||
queue = new QueueWithTwoStacks(); | ||
queue.enQueue(1); | ||
queue.enQueue(2); | ||
queue.enQueue(3); | ||
} | ||
|
||
@After | ||
public void tearDown() { | ||
|
||
} | ||
|
||
@Test | ||
public void enQueueTest() { | ||
System.out.println(queue); | ||
} | ||
|
||
@Test | ||
public void deQueueTest() { | ||
queue.deQueue(); | ||
System.out.println(queue); | ||
} | ||
} |