1
2
3
4
5
6
7
8
9 package net.kwfgrid.gwes;
10
11 import de.fraunhofer.first.resmatch.client.ResourceMatcherClient;
12 import junit.framework.Assert;
13 import junit.framework.Test;
14 import junit.framework.TestSuite;
15 import net.kwfgrid.gwes.exception.LoggingException;
16 import org.apache.log4j.Logger;
17
18
19
20
21
22
23
24
25 public final class ResourceMatcherClientTest extends LocalGWESAbstractTestCase {
26
27
28
29
30 static Logger logger = Logger.getLogger(ResourceMatcherClientTest.class);
31
32
33
34
35
36
37 public ResourceMatcherClientTest(String testName) throws LoggingException {
38 super(testName);
39 }
40
41
42
43
44 public static Test suite() {
45 return new TestSuite(ResourceMatcherClientTest.class);
46 }
47
48
49
50
51 public void testResourceMatcherClient() {
52
53 try {
54
55 String fn = "examples/programexecution/concatenateIt_10.xml";
56
57
58 GWES gwes = new GWESEngine();
59
60
61 String result = ResourceMatcherClient.getInstance().match(readfile(fn));
62 logger.info(result);
63 } catch (Exception e) {
64 logger.fatal("exception: " + e, e);
65 Assert.fail();
66 }
67 }
68
69 }