You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2004/09/07 15:37:20 UTC
cvs commit: jakarta-tapestry/framework/src/java/org/apache/tapestry/test Creator.java
hlship 2004/09/07 06:37:20
Modified: framework/src/java/org/apache/tapestry/services/impl
SymbolSourcesPropertySource.java
junit/src/org/apache/tapestry/junit/mock TestMocks.java
framework/src/java/org/apache/tapestry/test Creator.java
Log:
Minor changes for latest HiveMind-1.0-rc-2-snapshot.
Revision Changes Path
1.2 +1 -1 jakarta-tapestry/framework/src/java/org/apache/tapestry/services/impl/SymbolSourcesPropertySource.java
Index: SymbolSourcesPropertySource.java
===================================================================
RCS file: /home/cvs/jakarta-tapestry/framework/src/java/org/apache/tapestry/services/impl/SymbolSourcesPropertySource.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SymbolSourcesPropertySource.java 3 Sep 2004 17:45:49 -0000 1.1
+++ SymbolSourcesPropertySource.java 7 Sep 2004 13:37:20 -0000 1.2
@@ -37,7 +37,7 @@
*/
public String getPropertyValue(String propertyName)
{
- return _module.getSymbolValue(propertyName);
+ return _module.valueForSymbol(propertyName);
}
}
1.8 +3 -0 jakarta-tapestry/junit/src/org/apache/tapestry/junit/mock/TestMocks.java
Index: TestMocks.java
===================================================================
RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/mock/TestMocks.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- TestMocks.java 25 Aug 2004 19:53:46 -0000 1.7
+++ TestMocks.java 7 Sep 2004 13:37:20 -0000 1.8
@@ -22,6 +22,7 @@
import junit.framework.Test;
import junit.framework.TestSuite;
+import org.apache.hivemind.util.PropertyUtils;
import org.apache.tapestry.junit.TapestryTestCase;
/**
@@ -60,6 +61,8 @@
MockTester tester = new MockTester(getProjectDir() + "/junit/", path);
tester.execute();
+
+ PropertyUtils.clearCache();
}
public static Test suite()
1.2 +10 -6 jakarta-tapestry/framework/src/java/org/apache/tapestry/test/Creator.java
Index: Creator.java
===================================================================
RCS file: /home/cvs/jakarta-tapestry/framework/src/java/org/apache/tapestry/test/Creator.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Creator.java 3 Sep 2004 17:46:15 -0000 1.1
+++ Creator.java 7 Sep 2004 13:37:20 -0000 1.2
@@ -33,6 +33,7 @@
import org.apache.hivemind.service.MethodSignature;
import org.apache.hivemind.service.impl.ClassFabImpl;
import org.apache.hivemind.service.impl.CtClassSource;
+import org.apache.hivemind.service.impl.HiveMindClassPool;
/**
* A utility class that is used to instantiate abstract Tapestry pages and
@@ -54,16 +55,19 @@
private Map _classes = new HashMap();
private final CtClassSource _classSource;
- public Creator()
- {
- this(Thread.currentThread().getContextClassLoader());
- }
+ public Creator()
+ {
+ this(Thread.currentThread().getContextClassLoader());
+ }
public Creator(ClassLoader loader)
{
- _classSource = new CtClassSource(loader);
- }
+ HiveMindClassPool pool = new HiveMindClassPool();
+ pool.appendClassLoader(loader);
+
+ _classSource = new CtClassSource(pool);
+ }
private void addAccessorMethod(ClassFab classFab, PropertyDescriptor pd, String attributeName)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org