Browse Source

Update unit test for new update component behaviour

git-svn-id: http://svn.dmdirc.com/trunk@4135 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith 16 years ago
parent
commit
4eddb50f9c
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      test/com/dmdirc/updater/UpdateTest.java

+ 4
- 2
test/com/dmdirc/updater/UpdateTest.java View File

@@ -22,24 +22,26 @@
22 22
 
23 23
 package com.dmdirc.updater;
24 24
 
25
+import com.dmdirc.updater.components.ClientComponent;
25 26
 import org.junit.Before;
26 27
 import org.junit.Test;
27 28
 import static org.junit.Assert.*;
28 29
 
29 30
 public class UpdateTest extends junit.framework.TestCase {
30 31
     
31
-    private final String subject = "outofdate component channel date version url";
32
+    private final String subject = "outofdate client channel date version url";
32 33
     
33 34
     private Update update;
34 35
 
35 36
     @Before
36 37
     public void setUp() throws Exception {
38
+        UpdateChecker.init();
37 39
         update = new Update(subject);
38 40
     }
39 41
 
40 42
     @Test
41 43
     public void testGetComponent() {
42
-        assertEquals("component", update.getComponent());
44
+        assertTrue(update.getComponent() instanceof ClientComponent);
43 45
     }
44 46
 
45 47
     @Test

Loading…
Cancel
Save