You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Benson Margulies <bi...@gmail.com> on 2009/05/13 12:43:14 UTC

How to run a test with a wierd set of system properties

Can one have multiple executions of the maven-surefire-plugin? I want to add
a test case that runs with a strange setting of file.encoding to the
systests.

Re: How to run a test with a wierd set of system properties

Posted by Benson Margulies <bi...@gmail.com>.
I doubt this will work for file.encoding. I fear I will need to add an  
entire project.

On May 13, 2009, at 7:24 AM, Freeman Fang <fr...@gmail.com>  
wrote:

> Hi Benson,
> You can  do it like
> <plugin>
>               <groupId>org.apache.maven.plugins</groupId>
>               <artifactId>maven-surefire-plugin</artifactId>
>               <configuration>
>                   <systemProperties>
>                       <property>
>                           <name></name>
>                           <value></value>
>                       </property>
>               </configuration>
>           </plugin>
> But it will affect all testcase, for a specific test, how about set  
> system properties in the setUp method?
> Freeman
>
>
> Benson Margulies wrote:
>> Can one have multiple executions of the maven-surefire-plugin? I  
>> want to add
>> a test case that runs with a strange setting of file.encoding to the
>> systests.
>>
>>
>
>
> -- 
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
>

Re: How to run a test with a wierd set of system properties

Posted by Freeman Fang <fr...@gmail.com>.
Hi Benson,
You can  do it like
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <systemProperties>
                        <property>
                            <name></name>
                            <value></value>
                        </property>
                </configuration>
            </plugin>
But it will affect all testcase, for a specific test, how about set 
system properties in the setUp method?
Freeman


Benson Margulies wrote:
> Can one have multiple executions of the maven-surefire-plugin? I want to add
> a test case that runs with a strange setting of file.encoding to the
> systests.
>
>   


-- 
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com