You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by gl...@apache.org on 2004/02/24 20:46:27 UTC
cvs commit: jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse TestSpecificationParser.java PropertyValue.page PropertySpecifications.page StaticBindingValue.page MissingRequiredExtendedAttribute.page DuplicatePropertySpecification.page ListenerBinding.page MessageBeanInitializer.page
glongman 2004/02/24 11:46:27
Modified: junit/src/org/apache/tapestry/junit/parse
TestSpecificationParser.java PropertyValue.page
PropertySpecifications.page StaticBindingValue.page
MissingRequiredExtendedAttribute.page
DuplicatePropertySpecification.page
ListenerBinding.page MessageBeanInitializer.page
Log:
Update license to ASL 2.0 and fix coresponding test cases
Revision Changes Path
1.15 +15 -15 jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/TestSpecificationParser.java
Index: TestSpecificationParser.java
===================================================================
RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/TestSpecificationParser.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- TestSpecificationParser.java 19 Feb 2004 17:37:44 -0000 1.14
+++ TestSpecificationParser.java 24 Feb 2004 19:46:27 -0000 1.15
@@ -416,7 +416,7 @@
{
IComponentSpecification spec = parsePage("PropertyValue.page");
- checkLine(spec, 7);
+ checkLine(spec, 22);
assertEquals("rubble", spec.getProperty("barney"));
assertEquals("flintstone", spec.getProperty("wilma"));
@@ -434,24 +434,24 @@
{
IComponentSpecification spec = parsePage("StaticBindingValue.page");
- checkLine(spec, 7);
+ checkLine(spec, 22);
IContainedComponent c = spec.getComponent("c");
- checkLine(c, 9);
+ checkLine(c, 24);
IBindingSpecification b = c.getBinding("fred");
- checkLine(b, 10);
+ checkLine(b, 25);
assertEquals("flintstone", b.getValue());
b = c.getBinding("barney");
- checkLine(b, 11);
+ checkLine(b, 26);
assertEquals("rubble", b.getValue());
b = c.getBinding("rock");
- checkLine(b, 12);
+ checkLine(b, 27);
assertEquals("hudson", b.getValue());
}
@@ -501,14 +501,14 @@
{
IComponentSpecification spec = parsePage("ListenerBinding.page");
- checkLine(spec, 7);
+ checkLine(spec, 22);
IContainedComponent c = spec.getComponent("c");
- checkLine(c, 9);
+ checkLine(c, 24);
IListenerBindingSpecification lbs = (ListenerBindingSpecification) c.getBinding("listener");
- checkLine(lbs, 10);
+ checkLine(lbs, 25);
String expectedScript =
buildExpectedScript(
@@ -554,21 +554,21 @@
assertEquals("persistent", false, ps.isPersistent());
assertEquals("type", "boolean", ps.getType());
assertNull("initialValue", ps.getInitialValue());
- checkLine(ps, 9);
+ checkLine(ps, 24);
ps = spec.getPropertySpecification("init");
assertEquals("name", "init", ps.getName());
assertEquals("persistent", false, ps.isPersistent());
assertEquals("type", "java.lang.Object", ps.getType());
assertEquals("initialValue", "pageName", ps.getInitialValue());
- checkLine(ps, 11);
+ checkLine(ps, 26);
ps = spec.getPropertySpecification("persist");
assertEquals("name", "persist", ps.getName());
assertEquals("persistent", true, ps.isPersistent());
assertEquals("type", "java.lang.Object", ps.getType());
assertNull("initialValue", ps.getInitialValue());
- checkLine(ps, 10);
+ checkLine(ps, 25);
ps = spec.getPropertySpecification("unknown");
@@ -631,12 +631,12 @@
IComponentSpecification spec = parsePage("MessageBeanInitializer.page");
IBeanSpecification bs = spec.getBeanSpecification("fred");
- checkLine(bs, 9);
+ checkLine(bs, 24);
MessageBeanInitializer i = (MessageBeanInitializer) bs.getInitializers().get(0);
assertEquals("barney", i.getPropertyName());
assertEquals("rubble", i.getKey());
- checkLine(i, 10);
+ checkLine(i, 25);
}
public void testInheritInformalParameters() throws Exception
1.3 +16 -1 jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/PropertyValue.page
Index: PropertyValue.page
===================================================================
RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/PropertyValue.page,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- PropertyValue.page 1 Jun 2003 05:05:06 -0000 1.2
+++ PropertyValue.page 24 Feb 2004 19:46:27 -0000 1.3
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 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
+
+ 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.
+-->
<!-- $Id$ -->
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
1.3 +16 -1 jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/PropertySpecifications.page
Index: PropertySpecifications.page
===================================================================
RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/PropertySpecifications.page,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- PropertySpecifications.page 1 Jun 2003 05:05:06 -0000 1.2
+++ PropertySpecifications.page 24 Feb 2004 19:46:27 -0000 1.3
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 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
+
+ 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.
+-->
<!-- $Id$ -->
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
1.3 +16 -1 jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/StaticBindingValue.page
Index: StaticBindingValue.page
===================================================================
RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/StaticBindingValue.page,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- StaticBindingValue.page 1 Jun 2003 05:05:06 -0000 1.2
+++ StaticBindingValue.page 24 Feb 2004 19:46:27 -0000 1.3
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 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
+
+ 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.
+-->
<!-- $Id$ -->
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
1.3 +16 -1 jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/MissingRequiredExtendedAttribute.page
Index: MissingRequiredExtendedAttribute.page
===================================================================
RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/MissingRequiredExtendedAttribute.page,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MissingRequiredExtendedAttribute.page 1 Jun 2003 05:05:06 -0000 1.2
+++ MissingRequiredExtendedAttribute.page 24 Feb 2004 19:46:27 -0000 1.3
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 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
+
+ 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.
+-->
<!-- $Id$ -->
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
1.3 +16 -1 jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/DuplicatePropertySpecification.page
Index: DuplicatePropertySpecification.page
===================================================================
RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/DuplicatePropertySpecification.page,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DuplicatePropertySpecification.page 1 Jun 2003 05:05:06 -0000 1.2
+++ DuplicatePropertySpecification.page 24 Feb 2004 19:46:27 -0000 1.3
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 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
+
+ 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.
+-->
<!-- $Id$ -->
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
1.4 +16 -1 jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/ListenerBinding.page
Index: ListenerBinding.page
===================================================================
RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/ListenerBinding.page,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ListenerBinding.page 1 Jun 2003 05:05:06 -0000 1.3
+++ ListenerBinding.page 24 Feb 2004 19:46:27 -0000 1.4
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 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
+
+ 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.
+-->
<!-- $Id$ -->
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
1.2 +16 -1 jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/MessageBeanInitializer.page
Index: MessageBeanInitializer.page
===================================================================
RCS file: /home/cvs/jakarta-tapestry/junit/src/org/apache/tapestry/junit/parse/MessageBeanInitializer.page,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MessageBeanInitializer.page 1 Jun 2003 05:05:06 -0000 1.1
+++ MessageBeanInitializer.page 24 Feb 2004 19:46:27 -0000 1.2
@@ -1,4 +1,19 @@
<?xml version="1.0"?>
+<!--
+ Copyright 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
+
+ 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.
+-->
<!-- $Id$ -->
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 3.0//EN"
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org