Browse Source

Fix broken ProgramError unit test

Change-Id: If59ba909c30b5938b23d9928329ac606706c8937
Reviewed-on: http://gerrit.dmdirc.com/1524
Automatic-Compile: Greg Holmes <greg@dmdirc.com>
Reviewed-by: Greg Holmes <greg@dmdirc.com>
tags/0.6.5b1
Chris Smith 13 years ago
parent
commit
1338fd816a
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      test/com/dmdirc/logger/ProgramErrorTest.java

+ 8
- 0
test/com/dmdirc/logger/ProgramErrorTest.java View File

@@ -21,12 +21,20 @@
21 21
  */
22 22
 package com.dmdirc.logger;
23 23
 
24
+import com.dmdirc.config.IdentityManager;
25
+import com.dmdirc.config.InvalidIdentityFileException;
24 26
 import java.util.Arrays;
25 27
 import java.util.Date;
28
+import org.junit.BeforeClass;
26 29
 import org.junit.Test;
27 30
 import static org.junit.Assert.*;
28 31
 
29 32
 public class ProgramErrorTest {
33
+    
34
+    @BeforeClass
35
+    public static void setup() throws InvalidIdentityFileException {
36
+        IdentityManager.load();
37
+    }
30 38
 
31 39
     @Test
32 40
     public void testConstructorNegativeID() {

Loading…
Cancel
Save