Browse Source

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 16 years ago
parent
commit
479980d4a6
1 changed files with 0 additions and 14 deletions
  1. 0
    14
      test/com/dmdirc/parser/ChannelInfoTest.java

+ 0
- 14
test/com/dmdirc/parser/ChannelInfoTest.java View File

80
         final TestParser parser = new TestParser();
80
         final TestParser parser = new TestParser();
81
         getChannelInfo(parser).sendMessage("hello");
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
         assertEquals("PRIVMSG #DMDirc_testing :hello", parser.sentLines.get(0));
83
         assertEquals("PRIVMSG #DMDirc_testing :hello", parser.sentLines.get(0));
86
     }
84
     }
87
 
85
 
90
         final TestParser parser = new TestParser();
88
         final TestParser parser = new TestParser();
91
         getChannelInfo(parser).sendNotice("hello");
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
         assertEquals("NOTICE #DMDirc_testing :hello", parser.sentLines.get(0));
91
         assertEquals("NOTICE #DMDirc_testing :hello", parser.sentLines.get(0));
96
     }
92
     }
97
 
93
 
100
         final TestParser parser = new TestParser();
96
         final TestParser parser = new TestParser();
101
         getChannelInfo(parser).sendCTCP("type", "hello");
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
         assertEquals("PRIVMSG #DMDirc_testing :" + ((char) 1) + "TYPE hello" + ((char) 1),
99
         assertEquals("PRIVMSG #DMDirc_testing :" + ((char) 1) + "TYPE hello" + ((char) 1),
106
                 parser.sentLines.get(0));
100
                 parser.sentLines.get(0));
107
     }
101
     }
111
         final TestParser parser = new TestParser();
105
         final TestParser parser = new TestParser();
112
         getChannelInfo(parser).sendCTCP("type", "");
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
         assertEquals("PRIVMSG #DMDirc_testing :" + ((char) 1) + "TYPE" + ((char) 1),
108
         assertEquals("PRIVMSG #DMDirc_testing :" + ((char) 1) + "TYPE" + ((char) 1),
117
                 parser.sentLines.get(0));
109
                 parser.sentLines.get(0));
118
     }
110
     }
122
         final TestParser parser = new TestParser();
114
         final TestParser parser = new TestParser();
123
         getChannelInfo(parser).sendAction("moo");
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
         assertEquals("PRIVMSG #DMDirc_testing :" + ((char) 1) + "ACTION moo" + ((char) 1),
117
         assertEquals("PRIVMSG #DMDirc_testing :" + ((char) 1) + "ACTION moo" + ((char) 1),
128
                 parser.sentLines.get(0));
118
                 parser.sentLines.get(0));
129
     }
119
     }
133
         final TestParser parser = new TestParser();
123
         final TestParser parser = new TestParser();
134
         getChannelInfo(parser).sendCTCPReply("type", "moo");
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
         assertEquals("NOTICE #DMDirc_testing :" + ((char) 1) + "TYPE moo" + ((char) 1),
126
         assertEquals("NOTICE #DMDirc_testing :" + ((char) 1) + "TYPE moo" + ((char) 1),
139
                 parser.sentLines.get(0));
127
                 parser.sentLines.get(0));
140
     }
128
     }
144
         final TestParser parser = new TestParser();
132
         final TestParser parser = new TestParser();
145
         getChannelInfo(parser).sendCTCPReply("type", "");
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
         assertEquals("NOTICE #DMDirc_testing :" + ((char) 1) + "TYPE" + ((char) 1),
135
         assertEquals("NOTICE #DMDirc_testing :" + ((char) 1) + "TYPE" + ((char) 1),
150
                 parser.sentLines.get(0));
136
                 parser.sentLines.get(0));
151
     }
137
     }

Loading…
Cancel
Save