source: trunk/quest-core-assertions-test/src/test/java/de/ugoe/cs/quest/assertions/AssertEventTest.java @ 518

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