Procházet zdrojové kódy

ChannelInfo unit tests no longer check the number of lines, just that the first line is as-expected.

Fixes issue 679

git-svn-id: http://svn.dmdirc.com/trunk@3457 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Chris Smith před 16 roky
rodič
revize
479980d4a6
1 změnil soubory, kde provedl 0 přidání a 14 odebrání
  1. 0
    14
      test/com/dmdirc/parser/ChannelInfoTest.java

+ 0
- 14
test/com/dmdirc/parser/ChannelInfoTest.java Zobrazit soubor

@@ -80,8 +80,6 @@ public class ChannelInfoTest extends junit.framework.TestCase {
80 80
         final TestParser parser = new TestParser();
81 81
         getChannelInfo(parser).sendMessage("hello");
82 82
 
83
-        assertEquals("Parser should output 1 line. Actual output: "
84
-                + Arrays.toString(parser.sentLines.toArray()), 1, parser.sentLines.size());
85 83
         assertEquals("PRIVMSG #DMDirc_testing :hello", parser.sentLines.get(0));
86 84
     }
87 85
 
@@ -90,8 +88,6 @@ public class ChannelInfoTest extends junit.framework.TestCase {
90 88
         final TestParser parser = new TestParser();
91 89
         getChannelInfo(parser).sendNotice("hello");
92 90
 
93
-        assertEquals("Parser should output 1 line. Actual output: "
94
-                + Arrays.toString(parser.sentLines.toArray()), 1, parser.sentLines.size());
95 91
         assertEquals("NOTICE #DMDirc_testing :hello", parser.sentLines.get(0));
96 92
     }
97 93
 
@@ -100,8 +96,6 @@ public class ChannelInfoTest extends junit.framework.TestCase {
100 96
         final TestParser parser = new TestParser();
101 97
         getChannelInfo(parser).sendCTCP("type", "hello");
102 98
 
103
-        assertEquals("Parser should output 1 line. Actual output: "
104
-                + Arrays.toString(parser.sentLines.toArray()), 1, parser.sentLines.size());
105 99
         assertEquals("PRIVMSG #DMDirc_testing :" + ((char) 1) + "TYPE hello" + ((char) 1),
106 100
                 parser.sentLines.get(0));
107 101
     }
@@ -111,8 +105,6 @@ public class ChannelInfoTest extends junit.framework.TestCase {
111 105
         final TestParser parser = new TestParser();
112 106
         getChannelInfo(parser).sendCTCP("type", "");
113 107
 
114
-        assertEquals("Parser should output 1 line. Actual output: "
115
-                + Arrays.toString(parser.sentLines.toArray()), 1, parser.sentLines.size());
116 108
         assertEquals("PRIVMSG #DMDirc_testing :" + ((char) 1) + "TYPE" + ((char) 1),
117 109
                 parser.sentLines.get(0));
118 110
     }
@@ -122,8 +114,6 @@ public class ChannelInfoTest extends junit.framework.TestCase {
122 114
         final TestParser parser = new TestParser();
123 115
         getChannelInfo(parser).sendAction("moo");
124 116
 
125
-        assertEquals("Parser should output 1 line. Actual output: "
126
-                + Arrays.toString(parser.sentLines.toArray()), 1, parser.sentLines.size());
127 117
         assertEquals("PRIVMSG #DMDirc_testing :" + ((char) 1) + "ACTION moo" + ((char) 1),
128 118
                 parser.sentLines.get(0));
129 119
     }
@@ -133,8 +123,6 @@ public class ChannelInfoTest extends junit.framework.TestCase {
133 123
         final TestParser parser = new TestParser();
134 124
         getChannelInfo(parser).sendCTCPReply("type", "moo");
135 125
 
136
-        assertEquals("Parser should output 1 line. Actual output: "
137
-                + Arrays.toString(parser.sentLines.toArray()), 1, parser.sentLines.size());
138 126
         assertEquals("NOTICE #DMDirc_testing :" + ((char) 1) + "TYPE moo" + ((char) 1),
139 127
                 parser.sentLines.get(0));
140 128
     }
@@ -144,8 +132,6 @@ public class ChannelInfoTest extends junit.framework.TestCase {
144 132
         final TestParser parser = new TestParser();
145 133
         getChannelInfo(parser).sendCTCPReply("type", "");
146 134
 
147
-        assertEquals("Parser should output 1 line. Actual output: "
148
-                + Arrays.toString(parser.sentLines.toArray()), 1, parser.sentLines.size());
149 135
         assertEquals("NOTICE #DMDirc_testing :" + ((char) 1) + "TYPE" + ((char) 1),
150 136
                 parser.sentLines.get(0));
151 137
     }

Načítá se…
Zrušit
Uložit