You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by lg...@apache.org on 2006/09/09 11:15:55 UTC
svn commit: r441766 -
/cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/core/container/ContainerTestCase.java
Author: lgawron
Date: Sat Sep 9 02:15:55 2006
New Revision: 441766
URL: http://svn.apache.org/viewvc?view=rev&rev=441766
Log:
COCOON-1913, ContainerTestCase made abstract so eclipse does not try to run it.
Modified:
cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/core/container/ContainerTestCase.java
Modified: cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/core/container/ContainerTestCase.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/core/container/ContainerTestCase.java?view=diff&rev=441766&r1=441765&r2=441766
==============================================================================
--- cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/core/container/ContainerTestCase.java (original)
+++ cocoon/trunk/core/cocoon-core/src/test/java/org/apache/cocoon/core/container/ContainerTestCase.java Sat Sep 9 02:15:55 2006
@@ -2,7 +2,7 @@
* Copyright 2002-2004 The Apache Software Foundation
* Licensed 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
+ * You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@@ -64,7 +64,7 @@
* <p>
* The following test case configuration can be used as a basis for new tests.
* Detailed explanations of the configuration elements can be found after
- * the example.
+ * the example.
* </p>
* <pre>
* <testcase>
@@ -100,7 +100,7 @@
* <dl>
* <dt>testcase</dt>
* <dd>Defines a test case configuration. Must contain one each of the
- * following elements:
+ * following elements:
* <code>context</code>, <code>roles</code>, and <code>components</code>
* </dd>.
*
@@ -110,18 +110,18 @@
*
* <dt>roles</dt>
* <dd>Roles configuration for the components configured in the
- * <code>components</code> element.
+ * <code>components</code> element.
* </dd>
*
* <dt>components</dt>
- * <dd>Used to configure any Components used by the test cases.
+ * <dd>Used to configure any Components used by the test cases.
* </dd>
*
* </dl>
*
* @version $Id$
*/
-public class ContainerTestCase extends TestCase {
+public abstract class ContainerTestCase extends TestCase {
/** The default logger */
private Logger logger;
@@ -279,7 +279,7 @@
* This method may be overwritten by subclasses to add aditional
* components.
*/
- protected void addComponents(ConfigurationInfo info)
+ protected void addComponents(ConfigurationInfo info)
throws Exception {
// subclasses can add components here
}
@@ -312,7 +312,7 @@
private Object getComponent(String classname,
Configuration conf,
- Parameters p)
+ Parameters p)
throws Exception {
final Object instance = Class.forName(classname).newInstance();
ContainerUtil.enableLogging(instance, getLogger());
@@ -330,25 +330,25 @@
if ( p == null ) {
p = new Parameters();
}
- ContainerUtil.parameterize(instance, p);
+ ContainerUtil.parameterize(instance, p);
}
ContainerUtil.initialize(instance);
return instance;
}
protected Object getComponent(String classname,
- Configuration conf)
+ Configuration conf)
throws Exception {
return this.getComponent(classname, conf, null);
}
protected Object getComponent(String classname,
- Parameters p)
+ Parameters p)
throws Exception {
return this.getComponent(classname, null, p);
}
- protected Object getComponent(String classname)
+ protected Object getComponent(String classname)
throws Exception {
return this.getComponent(classname, null, null);
}