tests to improve
git-svn-id: https://svn.apache.org/repos/asf/lenya/trunk@1033139 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.apache.lenya.core.usecase/src/test/java/org/apache/lenya/cms/usecase/AbstractUsecaseTest.java b/org.apache.lenya.core.usecase/src/test/java/org/apache/lenya/cms/usecase/AbstractUsecaseTest.java
index f5d6edd..b143a5a 100644
--- a/org.apache.lenya.core.usecase/src/test/java/org/apache/lenya/cms/usecase/AbstractUsecaseTest.java
+++ b/org.apache.lenya.core.usecase/src/test/java/org/apache/lenya/cms/usecase/AbstractUsecaseTest.java
@@ -25,6 +25,7 @@
import org.apache.lenya.cms.AbstractAccessControlTest;
import org.apache.lenya.cms.publication.Session;
import org.apache.lenya.cms.usecase.impl.TestUsecaseInvoker;
+import org.junit.Test;
/**
* Usecase test base class.
@@ -35,6 +36,7 @@
* The test.
* @throws Exception
*/
+ @Test
public void testUsecase() throws Exception {
Session session = getSession();
@@ -72,7 +74,7 @@
checkPostconditions();
}
-
+
private String targetUrl;
protected String getTargetUrl() {
diff --git a/org.apache.lenya.core.usecase/src/test/java/org/apache/lenya/cms/usecase/impl/TestUsecaseInvoker.java b/org.apache.lenya.core.usecase/src/test/java/org/apache/lenya/cms/usecase/impl/TestUsecaseInvoker.java
new file mode 100644
index 0000000..c1f6572
--- /dev/null
+++ b/org.apache.lenya.core.usecase/src/test/java/org/apache/lenya/cms/usecase/impl/TestUsecaseInvoker.java
@@ -0,0 +1,34 @@
+/*
+ * 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.lenya.cms.usecase.impl;
+
+import org.junit.Ignore;
+
+/**
+ * Invoker for test usecases. The transactions are not committed.
+ */
+
+@Ignore ("have to implement tests in it")
+public class TestUsecaseInvoker extends UsecaseInvokerImpl {
+
+ /**
+ * The Avalon role.
+ */
+ public static final String ROLE = TestUsecaseInvoker.class.getName();
+
+}