Debian Codegraph @

src/test/java/org/astrogrid/samp/CommandTest.java

raw
1 package org.astrogrid.samp;
2
3 import junit.framework.TestCase;
4
5 public class CommandTest extends TestCase {
6
7 public void testCommands() throws Exception {
8 String[] cmdClasses = JSamp.COMMAND_CLASSES;
9 for ( int i = 0; i < cmdClasses.length; i++ ) {
10 String className = cmdClasses[ i ];
11 Class clazz = Class.forName( className );
12 assertNotNull( JSamp.getMainMethod( clazz ) );
13 }
14 }
15
16 public void testVersion() {
17 assertTrue( SampUtils.getSampVersion().trim().charAt( 0 ) != '?' );
18 assertTrue( SampUtils.getSoftwareVersion().trim().charAt( 0 ) != '?' );
19 }
20 }