|
@@ -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
|