Last change
on this file was
341,
checked in by sherbold, 13 years ago
|
|
-
Property svn:mime-type set to
text/plain
|
File size:
900 bytes
|
Line | |
---|
1 | package de.ugoe.cs.eventbench.assertions;
|
---|
2 |
|
---|
3 | import org.junit.*;
|
---|
4 |
|
---|
5 | import de.ugoe.cs.eventbench.data.mock.MockReplayable;
|
---|
6 | import static org.junit.Assert.*;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * The class <code>AssertEventTest</code> contains tests for the class
|
---|
10 | * <code>{@link AssertEvent}</code>.
|
---|
11 | *
|
---|
12 | * @author Steffen Herbold
|
---|
13 | * @version 1.0
|
---|
14 | */
|
---|
15 | public class AssertEventTest {
|
---|
16 |
|
---|
17 | @Test
|
---|
18 | public void testAssertEvent_1() throws Exception {
|
---|
19 | String type = "typeString";
|
---|
20 |
|
---|
21 | AssertEvent<MockReplayable> result = new AssertEvent<MockReplayable>(
|
---|
22 | type);
|
---|
23 |
|
---|
24 | assertNotNull(result);
|
---|
25 | assertEquals(type, result.getType());
|
---|
26 | }
|
---|
27 |
|
---|
28 | @Test(expected = java.security.InvalidParameterException.class)
|
---|
29 | public void testAssertEvent_2() throws Exception {
|
---|
30 |
|
---|
31 | new AssertEvent<MockReplayable>(null);
|
---|
32 | }
|
---|
33 |
|
---|
34 | public static void main(String[] args) {
|
---|
35 | new org.junit.runner.JUnitCore().run(AssertEventTest.class);
|
---|
36 | }
|
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.