You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by bd...@apache.org on 2011/04/04 16:27:16 UTC

svn commit: r1088635 - in /incubator/stanbol/trunk/enhancer: integration-tests/src/test/java/org/apache/stanbol/enhancer/it/BenchmarkTest.java launchers/full/src/main/bundles/list.xml

Author: bdelacretaz
Date: Mon Apr  4 14:27:16 2011
New Revision: 1088635

URL: http://svn.apache.org/viewvc?rev=1088635&view=rev
Log:
STANBOL-138 - benchmarks module added to full launcher, with basic integration test

Added:
    incubator/stanbol/trunk/enhancer/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/BenchmarkTest.java   (with props)
Modified:
    incubator/stanbol/trunk/enhancer/launchers/full/src/main/bundles/list.xml

Added: incubator/stanbol/trunk/enhancer/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/BenchmarkTest.java
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/enhancer/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/BenchmarkTest.java?rev=1088635&view=auto
==============================================================================
--- incubator/stanbol/trunk/enhancer/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/BenchmarkTest.java (added)
+++ incubator/stanbol/trunk/enhancer/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/BenchmarkTest.java Mon Apr  4 14:27:16 2011
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to You under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package org.apache.stanbol.enhancer.it;
+
+import java.net.URLEncoder;
+
+import org.junit.Test;
+
+public class BenchmarkTest extends EnhancerTestBase {
+
+    final String BENCHMARK =
+        "= INPUT = \n"
+        + "Bob Marley was born in Kingston, Jamaica. \n"
+        + "= EXPECT = \n"
+        + "Description: Kingston must be found \n"
+        + "http://fise.iks-project.eu/ontology/entity-reference URI http://dbpedia.org/resource/Kingston%2C_Jamaica"
+        ;
+    
+    @Test
+    public void testBenchmark() throws Exception {
+        executor.execute(
+                builder.buildPostRequest("/benchmark?content=" + URLEncoder.encode(BENCHMARK, "UTF-8"))
+                .withContent(BENCHMARK)
+            ).assertStatus(200)
+            .assertContentContains("SUCCESSFUL");
+    }
+}

Propchange: incubator/stanbol/trunk/enhancer/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/BenchmarkTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/stanbol/trunk/enhancer/integration-tests/src/test/java/org/apache/stanbol/enhancer/it/BenchmarkTest.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision Rev URL

Modified: incubator/stanbol/trunk/enhancer/launchers/full/src/main/bundles/list.xml
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/enhancer/launchers/full/src/main/bundles/list.xml?rev=1088635&r1=1088634&r2=1088635&view=diff
==============================================================================
--- incubator/stanbol/trunk/enhancer/launchers/full/src/main/bundles/list.xml (original)
+++ incubator/stanbol/trunk/enhancer/launchers/full/src/main/bundles/list.xml Mon Apr  4 14:27:16 2011
@@ -342,6 +342,11 @@
 			<artifactId>org.apache.stanbol.enhancer.engines.metaxa</artifactId>
 			<version>0.9-SNAPSHOT</version>
 		</bundle>
+		<bundle>
+			<groupId>org.apache.stanbol</groupId>
+			<artifactId>org.apache.stanbol.enhancer.benchmark</artifactId>
+			<version>0.9-SNAPSHOT</version>
+		</bundle>
 	</startLevel>
 
 	<!-- Stanbol Enhancer Enhancement Engines -->