Remove aggregated group stubs and fix #543.
2 * StarOffice News Server
3 * see AUTHORS for the list of contributors
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
21 import java.text.SimpleDateFormat;
22 import java.util.ArrayList;
23 import java.util.List;
24 import test.AbstractTest;
27 * Tests the OVER/XOVER command.
28 * @author Christian Lins
31 public class OverTest extends AbstractTest
38 // Send HELLO to server
39 String line = readln();
40 if(!line.startsWith("200 "))
45 // Determine available groups
48 if(!line.startsWith("215 "))
53 List<String> groups = new ArrayList<String>();
68 if(groups.size() <= 0)
73 // Test OVER command on every group
74 for(String group : groups)
76 String groupName = group.split(" ")[0];
77 println("GROUP " + groupName);
79 if(!line.startsWith("211 "))
84 String[] lineToks = line.split(" ");
85 println("XOVER " + lineToks[2] + "-" + lineToks[3]);
87 if(line.startsWith("423"))
91 else if(!line.startsWith("224 "))
103 else if(line.equals("."))
109 lineToks = line.split("\t");
110 if(lineToks.length < 6)
116 Integer.parseInt(lineToks[0]);
118 //SimpleDateFormat sdf = new SimpleDateFormat(group)
120 if(!lineToks[4].startsWith("<") && !lineToks[4].endsWith(">"))
122 log.println("Invalid Message-ID: " + lineToks[1]);