Changeset 346
- Timestamp:
- 12/22/11 10:28:52 (13 years ago)
- Location:
- trunk/EventBenchCoreTest/src/de/ugoe/cs/eventbench/models
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchCoreTest/src/de/ugoe/cs/eventbench/models/FirstOrderMarkovModelTest.java
r344 r346 8 8 9 9 import de.ugoe.cs.eventbench.data.Event; 10 import de.ugoe.cs.eventbench.models.FirstOrderMarkovModel.MarkovEdge; 10 11 import static org.junit.Assert.*; 11 12 … … 48 49 } 49 50 51 @Test 52 public void testMarkovEdgeMarkovEdge_1() throws Exception { 53 double weight = 0.2d; 54 55 MarkovEdge result = new MarkovEdge(weight); 56 57 assertNotNull(result); 58 assertEquals(weight, result.weight, 0.0001); 59 } 60 61 @Test 62 public void testMarkovEdgeToString_1() throws Exception { 63 double weight = 0.2d; 64 MarkovEdge fixture = new MarkovEdge(weight); 65 66 String result = fixture.toString(); 67 68 assertEquals(Double.toString(0.2d), result); 69 } 70 50 71 @Before 51 72 public void setUp() throws Exception { -
trunk/EventBenchCoreTest/src/de/ugoe/cs/eventbench/models/TrieTest.java
r315 r346 9 9 10 10 import org.junit.*; 11 12 import de.ugoe.cs.eventbench.models.Trie.Edge; 13 import de.ugoe.cs.eventbench.models.Trie.TrieVertex; 11 14 import static org.junit.Assert.*; 12 15 … … 606 609 assertTrue(root_b.isLeaf()); 607 610 } 611 612 @Test 613 public void testEdgeEdge_1() throws Exception { 614 Edge result = new Edge(); 615 616 assertNotNull(result); 617 } 618 619 @Test 620 public void testTrieVertexTrieVertex_1() throws Exception { 621 String id = "idString"; 622 623 TrieVertex result = new TrieVertex(id); 624 625 assertNotNull(result); 626 } 627 628 @Test 629 public void testTrieVertexToString_1() throws Exception { 630 String id = "idString"; 631 TrieVertex fixture = new TrieVertex(id); 632 633 String result = fixture.toString(); 634 635 assertEquals(id, result); 636 } 608 637 609 638 @Before
Note: See TracChangeset
for help on using the changeset viewer.