[prev in list] [next in list] [prev in thread] [next in thread]
List: cactus-dev
Subject: cvs commit: jakarta-cactus/integration/maven/src/plugin-test/test05/src/web/WEB-INF web.xml
From: felipeal () apache ! org
Date: 2004-10-24 5:13:28
Message-ID: 20041024051328.69507.qmail () minotaur ! apache ! org
[Download RAW message or body]
felipeal 2004/10/23 22:13:28
Added: integration/maven/src/plugin-test/test05 .cvsignore
maven.xml project.properties project.xml
integration/maven/src/plugin-test/test05/src/test-cactus/org/apache/cactus/test05
TestProperties.java
integration/maven/src/plugin-test/test05/src/web/WEB-INF
web.xml
Log:
test case for cactus.sysproperties
Revision Changes Path
1.1 \
jakarta-cactus/integration/maven/src/plugin-test/test05/.cvsignore
Index: .cvsignore
===================================================================
gump.xml
*.log
targetdist
dist
target
1.1 \
jakarta-cactus/integration/maven/src/plugin-test/test05/maven.xml
Index: maven.xml
===================================================================
<!--
/*
* Copyright 2001-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.
*/
-->
<project default="testPlugin">
<goal name="testPlugin">
<echo>NOTE: this test is only effective if you set at least one container to \
run cactus tests</echo> <attainGoal name="cactus:test-war"/>
<attainGoal name="cactus:single"/>
<attainGoal name="cactus:match"/>
</goal>
</project>
1.1 \
jakarta-cactus/integration/maven/src/plugin-test/test05/project.properties
Index: project.properties
===================================================================
maven.war.src=${basedir}/src/web
cactus.src.dir=${basedir}/src/test-cactus
cactus.sysproperties=prop1 prop2
prop1=value1
prop2=value2
testcase=org.apache.cactus.test05.TestProperties
testmatch=org.apache.cactus.test05.TestProperties
1.1 \
jakarta-cactus/integration/maven/src/plugin-test/test05/project.xml
Index: project.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
/*
* Copyright 2001-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.
*/
-->
<project>
<pomVersion>3</pomVersion>
<id>test-cactus-maven-plugin-05</id>
<name>Simple project</name>
<description>Test for cactus.sysproperties</description>
<extend>../project.xml</extend>
</project>
1.1 \
jakarta-cactus/integration/maven/src/plugin-test/test05/src/test-cactus/org/apache/cactus/test05/TestProperties.java
Index: TestProperties.java
===================================================================
/*
* ========================================================================
*
* 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.
*
* ========================================================================
*/
package org.apache.cactus.test05;
import java.util.Map;
import org.apache.cactus.ServletTestCase;
import org.apache.cactus.WebRequest;
public class TestProperties extends ServletTestCase
{
/**
* Verify that the properties were set correctly.
*/
public void testProperties()
{
String prop1 = System.getProperty("prop1");
String prop2 = System.getProperty("prop2");
assertNotNull( prop1 );
assertNotNull( prop2 );
assertEquals( "value1", prop1 );
assertEquals( "value2", prop2 );
}
}
1.1 \
jakarta-cactus/integration/maven/src/plugin-test/test05/src/web/WEB-INF/web.xml
Index: web.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
</web-app>
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic