leosutic 2003/08/14 15:08:59
Added: attributes/unittest/src/cl1 TestAttribute.java
attributes/unittest/src/cl2 TestAttribute.java
attributes/unittest/src/test/org/apache/avalon/attributes/test
SuperSample.java SampleService.java
SampleIFJoin.java
Log:
Moved the unit tests into a separate project to get away from some really
ugly dependencies. (API being dependent test-wise on Compiler, and
Compiler being dependent on API biuld-wise)
Revision Changes Path
1.1 avalon-sandbox/attributes/unittest/src/cl1/TestAttribute.java
Index: TestAttribute.java
===================================================================
public class TestAttribute {
private final String key;
public TestAttribute (String key) {
this.key = key;
}
public String getKey () {
return key;
}
public String toString () {
return "[TestAttribute " + key + "]";
}
}
1.1 avalon-sandbox/attributes/unittest/src/cl2/TestAttribute.java
Index: TestAttribute.java
===================================================================
/**
* @org.apache.avalon.attributes.Indexed
*/
public class TestAttribute {
private final String key;
public TestAttribute (String key) {
this.key = key;
}
public String getKey () {
return key;
}
public String toString () {
return "[TestAttribute " + key + "]";
}
}
1.1
avalon-sandbox/attributes/unittest/src/test/org/apache/avalon/attributes/test/SuperSample.java
Index: SuperSample.java
===================================================================
package org.apache.avalon.attributes.test;
/**
* @Dependency ( SampleService.class, "super-sample" )
*/
public class SuperSample {
/**
* @ThreadSafe ()
* @Dependency ( SampleService.class, "super-field" )
*/
public Object field;
/**
* @Dependency ( SampleService.class, "super-noattrs" )
*/
public Object noAttributesInSubClass;
/**
* @Dependency ( SampleService.class, "sample-ctor1" )
*/
public SuperSample () {
}
/**
* @Dependency ( SampleService.class, "sample-ctor2" )
*/
public SuperSample (String input, String[][] array) {
}
/**
* @Dependency ( SampleService.class, "super-some-method-sample" )
* @ThreadSafe ()
*/
public void someMethod (int parameter) {
}
}
1.1
avalon-sandbox/attributes/unittest/src/test/org/apache/avalon/attributes/test/SampleService.java
Index: SampleService.java
===================================================================
package org.apache.avalon.attributes.test;
public interface SampleService {}
1.1
avalon-sandbox/attributes/unittest/src/test/org/apache/avalon/attributes/test/SampleIFJoin.java
Index: SampleIFJoin.java
===================================================================
package org.apache.avalon.attributes.test;
public interface SampleIFJoin extends SampleIF1, SampleIF2 {
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]