summaryrefslogtreecommitdiff
path: root/src-test/morfologik/tools/LauncherTest.java
blob: da94df733a738254677f7c22afdc22adcf7309ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package morfologik.tools;

import java.util.Map;

import morfologik.tools.Launcher.ToolInfo;

import org.junit.Assert;
import org.junit.Test;

/*
 *
 */
public class LauncherTest {
	/* */
	@Test
	public void testTools() throws Exception {
		for (Map.Entry<String, ToolInfo> e : Launcher.initTools().entrySet()) {
			try {
				e.getValue().invoke(new String[] {});
			} catch (Throwable t) {
				Assert.fail("Unable to launch " + e.getKey() + ": "
				        + t.getMessage());
			}
		}
	}
}