You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@onami.apache.org by si...@apache.org on 2012/12/09 11:31:49 UTC
svn commit: r1418887 [9/11] - in /incubator/onami/site/test: ./
apidocs/assets/ apidocs/reference/ apidocs/reference/org/apache/onami/test/
cobertura/ xref-test/org/apache/onami/test/
xref-test/org/apache/onami/test/guice/ xref/ xref/org/apache/onami/t...
Modified: incubator/onami/site/test/guice.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/guice.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/guice.html (original)
+++ incubator/onami/site/test/guice.html Sun Dec 9 10:31:23 2012
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="author" content="The 99 Software Foundation" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="author" content="The Apache Onami developers team" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Onami-Test - Guice Integration</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -42,13 +42,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -105,42 +123,6 @@
<i class="icon-chevron-right"></i>
Project Reports</a>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>
@@ -319,28 +301,34 @@
<div id="bodyColumn" class="span9" >
- <!-- --><!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you 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. --><!-- --><div class="section"><h2>Guice integration!<a name="Guice_integration"></a></h
2><p><i>JUnice</i> provides a couple of annotations to allow user reusing google-guice modules in test classes.</p><p><tt>@org.nnsoft.guice.junice.annotation.GuiceModule</tt> is a class annotation usefull to indicate a list of google-guice modules class.</p><p><tt>@org.nnsoft.guice.junice.annotation.GuiceProvidedModules</tt> is a method annotation usefull to indicate a provider method to create a custom google-guice module.</p><div class="section"><h3>GuiceModule annotation<a name="GuiceModule_annotation"></a></h3><p>This example shows a typical use for this annotation; given the following module:</p><div class="source"><pre class="prettyprint">public class SimpleModule extends AbstractModule {
+ <!-- --><!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you 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. --><!-- --><div class="section"><h2>Guice integration!<a name="Guice_integration"></a></h
2><p><i>Apache Onami-Test</i> provides a couple of annotations to allow user reusing google-guice modules in test classes.</p><p><tt>@org.apache.onami.test.annotation.GuiceModule</tt> is a class annotation useful to indicate a list of google-guice modules class.</p><p><tt>@org.apache.onami.test.annotation.GuiceProvidedModules</tt> is a method annotation usefull to indicate a provider method to create a custom google-guice module.</p><div class="section"><h3>GuiceModule annotation<a name="GuiceModule_annotation"></a></h3><p>This example shows a typical use for this annotation; given the following module:</p><div class="source"><pre class="prettyprint">public class SimpleModule
+ extends AbstractModule
+{
@Override
- protected void configure() {
- bind(Hello.class).to(HelloWorld.class);
+ protected void configure()
+ {
+ bind( Hello.class ).to( HelloWorld.class );
}
-}</pre></div><p>then users can reuse it specifying</p><div class="source"><pre class="prettyprint">@RunWith(JUniceRunner.class)
-@GuiceModules(modules={ SimpleModule.class,
- AnotherAcmeModule.class })
-public class SimpleTest {
-
- @com.google.inject.Inject
- private Hello helloWorld;
-
- @org.junit.Test
- public void testInjectNotStatic() {
- assertNotNull(helloWorld);
- assertEquals("Hello World!!!!", helloWorld.sayHallo());
- }
+}</pre></div><p>then users can reuse it specifying</p><div class="source"><pre class="prettyprint">@RunWith( OnamiRunner.class )
+@GuiceModules( { SimpleModule.class, AnotherAcmeModule.class } )
+public class SimpleTest
+{
+
+ @com.google.inject.Inject
+ private Hello helloWorld;
+
+ @org.junit.Test
+ public void testInjectNotStatic()
+ {
+ assertNotNull( helloWorld );
+ assertEquals( "Hello World!!!!", helloWorld.sayHallo() );
+ }
-}</pre></div></div><div class="section"><h3>GuiceProvidedModule annotation<a name="GuiceProvidedModule_annotation"></a></h3><p>GuiceProvidedModule is usefull when your test needs a module that not have a default costructor. So in you testcase you have to declare a <b>public static</b> method with the return type is <i>com.google.inject.Module</i> or <i>Iterable<com.google.inject.Module></i> or or <i>com.google.inject.Module[]</i></p><div class="source"><pre class="prettyprint">public class ComplexModule extends AbstractModule {
+}</pre></div></div><div class="section"><h3>GuiceProvidedModule annotation<a name="GuiceProvidedModule_annotation"></a></h3><p>GuiceProvidedModule is usefull when your test needs a module that not have a default costructor. So in you testcase you have to declare a <b>public static</b> method with the return type is <i>com.google.inject.Module</i> or <i>Iterable<com.google.inject.Module></i> or or <i>com.google.inject.Module[]</i></p><div class="source"><pre class="prettyprint">public class ComplexModule
+ extends AbstractModule
+{
private String name;
@@ -350,44 +338,49 @@ public class SimpleTest {
@Override
protected void configure() {
- bind(WhoIm.class).toInstance(new WhoIm(name));
+ bind( WhoIm.class ).toInstance( new WhoIm(name) );
}
-}</pre></div><div class="source"><pre class="prettyprint">@RunWith(JUniceRunner.class)
-public class SimpleTest {
+}</pre></div><p>then, in the test class:</p><div class="source"><pre class="prettyprint">@RunWith( OnamiRunner.class )
+public class SimpleTest
+{
@GuiceProvidedModules
- public static Module createComplexModule(){
- return new ComplexModule("Marco Speranza");
+ public static Module createComplexModule()
+ {
+ return new ComplexModule( "Marco Speranza" );
}
@com.google.inject.Inject
public static WhoIm whoIm;
@org.junit.Test
- public void testWhoIm() {
- assertNotNull(whoIm);
- assertEquals("Marco Speranza", whoIm.sayWhoIm());
+ public void testWhoIm()
+ {
+ assertNotNull( whoIm );
+ assertEquals( "Marco Speranza", whoIm.sayWhoIm() );
}
-}</pre></div><p>Finally if you want create a module on the fly, your test case should extend <tt>com.google.inject.AbstractModule</tt> or implement a <tt>com.google.inject.Module</tt></p><div class="source"><pre class="prettyprint">@RunWith(JUniceRunner.class)
-public class SimpleTest extends AbstractModule {
+}</pre></div><p>Finally if you want create a module on the fly, your test case should extend <tt>com.google.inject.AbstractModule</tt> or implement a <tt>com.google.inject.Module</tt></p><div class="source"><pre class="prettyprint">@RunWith( OnamiRunner.class )
+public class SimpleTest
+ extends AbstractModule
+{
@Override
- public void configure() {
- bind(Integer.class)
- .annotatedWith(Names.named("version"))
- .toInstance(10);
+ public void configure()
+ {
+ bind( Integer.class ).annotatedWith( Names.named("version") ).toInstance( 10 );
}
@Inject
- @Named("version")
+ @Named( "version" )
private Integer version;
@Test
- public void testInjectModuleClass(){
- assertNotNull(version);
- assertEquals(10, version.intValue());
+ public void testInjectModuleClass()
+ {
+ assertNotNull( version );
+ assertEquals( 10, version.intValue() );
}
}</pre></div></div></div>
Modified: incubator/onami/site/test/index.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/index.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/index.html (original)
+++ incubator/onami/site/test/index.html Sun Dec 9 10:31:23 2012
@@ -1,16 +1,16 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="author" content="The 99 Software Foundation" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="author" content="The Apache Onami developers team" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
- <title>Apache Onami-Test - Welcome to JUnice</title>
+ <title>Apache Onami-Test - Welcome to Apache Onami-Test</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
@@ -42,13 +42,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -196,42 +214,6 @@
<i class="icon-chevron-right"></i>
Project Reports</a>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>
@@ -410,15 +392,15 @@
<div id="bodyColumn" class="span9" >
- <!-- --><!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you 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. --><!-- --><div class="section"><h2>Welcome to JUnice!<a name="Welcome_to_JUnice"></a></h
2><p>JUnice is a small java library for <i>JUnit</i> that minimizes the boilerplate code in your unit test relying on <i>Google Guice</i> to inject directly into your test cases all the required dependecies. Moreover it makes easier creating and injecting Mock and Stubs for your test cases and inject them into your bussiness-logic classes.</p></div><div class="section"><h2>Before Coding...<a name="Before_Coding..."></a></h2><p>To set up your project, configure in your pom.xml the <tt>dependency</tt>:</p><div class="source"><pre class="prettyprint"><dependencies>
- ...
- <dependency>
- <groupId>org.nnsoft.guice.junice</groupId>
- <artifactId>junice</artifactId>
- <version>1.4-incubating-SNAPSHOT</version>
- </dependency>
- ...
-</dependencies></pre></div></div><div class="section"><h2>Acknowledgements<a name="Acknowledgements"></a></h2><p>This work is dedicated to our city, L'Aquila, destroyed by a terrible earthquake the 6th April, 2009... That day more than 300 people were killed because buildings collapsed after a magnitudo 6.3 earthquake at 3:32 am.</p><p>We'll never forget that episode.</p></div>
+ <!-- --><!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you 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. --><!-- --><div class="section"><h2>Welcome to Apache Onami-Test!<a name="Welcome_to_Apac
he_Onami-Test"></a></h2><p>Apache Onami-Test is a small java library for <i>JUnit</i> that minimizes the boilerplate code in your unit test relying on <i>Google Guice</i> to inject directly into your test cases all the required dependecies. Moreover it makes easier creating and injecting Mock and Stubs for your test cases and inject them into your bussiness-logic classes.</p></div><div class="section"><h2>Before Coding...<a name="Before_Coding..."></a></h2><p>To set up your project, configure in your pom.xml the <tt>dependency</tt>:</p><div class="source"><pre class="prettyprint"><dependencies>
+ ...
+ <dependency>
+ <groupId>org.apache.onami</groupId>
+ <artifactId>onami-test</artifactId>
+ <version>1.4-incubating-SNAPSHOT</version>
+ </dependency>
+ ...
+</dependencies></pre></div></div>
</div>
</div>
</div>
Modified: incubator/onami/site/test/integration.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/integration.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/integration.html (original)
+++ incubator/onami/site/test/integration.html Sun Dec 9 10:31:23 2012
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Onami-Test - Continuous Integration</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -41,13 +41,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -197,42 +215,6 @@
<i class="icon-chevron-right"></i>
Project Reports</a>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>
Modified: incubator/onami/site/test/issue-tracking.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/issue-tracking.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/issue-tracking.html (original)
+++ incubator/onami/site/test/issue-tracking.html Sun Dec 9 10:31:23 2012
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Onami-Test - Issue Tracking</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -41,13 +41,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -197,42 +215,6 @@
<i class="icon-chevron-right"></i>
Project Reports</a>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>
Modified: incubator/onami/site/test/license.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/license.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/license.html (original)
+++ incubator/onami/site/test/license.html Sun Dec 9 10:31:23 2012
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Onami-Test - Project License</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -41,13 +41,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -197,42 +215,6 @@
<i class="icon-chevron-right"></i>
Project Reports</a>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>
Modified: incubator/onami/site/test/mail-lists.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/mail-lists.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/mail-lists.html (original)
+++ incubator/onami/site/test/mail-lists.html Sun Dec 9 10:31:23 2012
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Onami-Test - Project Mailing Lists</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -41,13 +41,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -197,42 +215,6 @@
<i class="icon-chevron-right"></i>
Project Reports</a>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>
Modified: incubator/onami/site/test/mock.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/mock.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/mock.html (original)
+++ incubator/onami/site/test/mock.html Sun Dec 9 10:31:23 2012
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="author" content="The 99 Software Foundation" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="author" content="The Apache Onami developers team" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Onami-Test - Mock framework</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -42,13 +42,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -105,42 +123,6 @@
<i class="icon-chevron-right"></i>
Project Reports</a>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>
@@ -319,131 +301,138 @@
<div id="bodyColumn" class="span9" >
- <!-- --><!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you 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. --><!-- --><div class="section"><h2>Mock framework<a name="Mock_framework"></a></h2><p><i
>JUnice</i> integrates two <i>Mock frameworks</i> integrated with <i>Google Guice</i> to inject the mocked object into bussines logic classes, simply by annotating a test fild with <tt>@org.nnsoft.guice.junice.mock.annotation.Mock</tt> annotation. All existing bindins will be replaced with mock object declared into your test class.</p><p>JUnice supports this kind of mock:</p><ul><li>Easy-Mock (<tt>org.nnsoft.guice.junice.mock.annotation.MockType.EASY_MOCK</tt>)</li><li>Mockito (<tt>org.nnsoft.guice.junice.mock.annotation.MockType.MOCKITO</tt>)<p><b>by default</b> JUnice creates Easy-Mock mock objects.</p></li></ul><div class="section"><h3>Choose your favorite mock framework<a name="Choose_your_favorite_mock_framework"></a></h3><p>To choose a different mock framework that <i>JUnice</i> shuld be used to create your mock object, you should annotate the test classes in this way:</p><div class="source"><pre class="prettyprint">
-@RunWith(JUniceRunner.class)
-@MockFramework(type=MockType.MOCKITO)
-public class SimpleTest {
+ <!-- --><!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you 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. --><!-- --><div class="section"><h2>Mock framework<a name="Mock_framework"></a></h2><p><i
>Apache Onami-Test</i> integrates two <i>Mock frameworks</i> integrated with <i>Google Guice</i> to inject the mocked object into bussines logic classes, simply by annotating a test fild with <tt>@org.apache.onami.test.mock.annotation.Mock</tt> annotation. All existing bindins will be replaced with mock object declared into your test class.</p><p>JUnice supports this kind of mock:</p><ul><li>Easy-Mock (<tt>org.apache.onami.test.mock.annotation.MockType.EASY_MOCK</tt>)</li><li>Mockito (<tt>org.apache.onami.test.mock.annotation.MockType.MOCKITO</tt>)<p><b>by default</b> JUnice creates Easy-Mock mock objects.</p></li></ul><div class="section"><h3>Choose your favorite mock framework<a name="Choose_your_favorite_mock_framework"></a></h3><p>To choose a different mock framework that <i>Apache Onami-Test</i> shuld be used to create your mock object, you should annotate the test classes in this way:</p><div class="source"><pre class="prettyprint">
+@RunWith( OnamiRunner.class )
+@MockFramework( MockType.MOCKITO )
+public class SimpleTest
+{
-}</pre></div></div><div class="section"><h3>Mock annotation<a name="Mock_annotation"></a></h3><p><tt>org.nnsoft.guice.junice.annotation.Mock</tt> is a field annotation used by core <i>Runner</i> to instantiate and inject Mock object into a test case class.</p><p><tt>org.nnsoft.guice.junice.annotation.Mock</tt> can be configured with this parameters:</p><table border="1" class="table table-striped"><tr class="a"><th align="left">Property</th><th align="left">Type</th><th align="left">Description</th></tr><tr class="b"><td align="left"><b>providedBy</b></td><td align="left"><tt>java.lang.String</tt></td><td align="left">Specifies a <tt>java.lang.String</tt> that indentifies a <b>public static</b> method with return type is equals to the type of the field annotated by this annotation.</td></tr><tr class="a"><td align="left"><b>providerClass</b></td><td align="left"><tt>Class</tt></td><td align="left">If present specifies a <tt>Class</tt> that contains the method <tt>providedBy<
/tt>, by default<tt>providerClass</tt> is setted with filed declared class</td></tr><tr class="b"><td align="left"><b>reserAfter</b></td><td align="left">boolean</td><td align="left"><b>true</b> (default) specifies a boolean value to reset this mock object after any test method.</td></tr><tr class="a"><td align="left"><b>annotateWith</b></td><td align="left"><tt>Class</tt></td><td align="left">Specifies an annotaion <tt>Class</tt> that will be used in the <tt>Google Guice</tt> binder to execute the literal binding.</td></tr><tr class="b"><td align="left"><b>namedWith</b></td><td align="left"><tt>String</tt></td><td align="left">Specifies an annotaion <tt>String>> that will be used in the <<<Google Guice</tt> binder to execute the literal binding.</td></tr><tr class="a"><td align="left"><b>type</b></td><td align="left"><tt>org.nnsoft.guice.junice.annotation.MockObjType</tt></td><td align="left">Specifies the mock type.</td></tr></table><p>In the following examp
le <i>HelloWorld</i> class dependencies will be injected with the mocked class created by the <i>Runner</i>:</p><div class="source"><pre class="prettyprint">
-public class HelloWorld {
+}</pre></div></div><div class="section"><h3>Mock annotation<a name="Mock_annotation"></a></h3><p><tt>org.apache.onami.test.annotation.Mock</tt> is a field annotation used by core <i>Runner</i> to instantiate and inject Mock object into a test case class.</p><p><tt>org.apache.onami.test.annotation.Mock</tt> can be configured with this parameters:</p><table border="1" class="table table-striped"><tr class="a"><th align="left">Property</th><th align="left">Type</th><th align="left">Description</th></tr><tr class="b"><td align="left"><b>providedBy</b></td><td align="left"><tt>java.lang.String</tt></td><td align="left">Specifies a <tt>java.lang.String</tt> that indentifies a <b>public static</b> method with return type is equals to the type of the field annotated by this annotation.</td></tr><tr class="a"><td align="left"><b>providerClass</b></td><td align="left"><tt>Class</tt></td><td align="left">If present specifies a <tt>Class</tt> that contains the method <tt>providedBy</tt>
, by default<tt>providerClass</tt> is setted with filed declared class</td></tr><tr class="b"><td align="left"><b>reserAfter</b></td><td align="left">boolean</td><td align="left"><b>true</b> (default) specifies a boolean value to reset this mock object after any test method.</td></tr><tr class="a"><td align="left"><b>annotateWith</b></td><td align="left"><tt>Class</tt></td><td align="left">Specifies an annotaion <tt>Class</tt> that will be used in the <tt>Google Guice</tt> binder to execute the literal binding.</td></tr><tr class="b"><td align="left"><b>namedWith</b></td><td align="left"><tt>String</tt></td><td align="left">Specifies an annotaion <tt>String>> that will be used in the <<<Google Guice</tt> binder to execute the literal binding.</td></tr><tr class="a"><td align="left"><b>type</b></td><td align="left"><tt>org.apache.onami.test.annotation.MockObjType</tt></td><td align="left">Specifies the mock type.</td></tr></table><p>In the following example <i>
HelloWorld</i> class dependencies will be injected with the mocked class created by the <i>Runner</i>:</p><div class="source"><pre class="prettyprint">public class HelloWorld
+{
@Inject
private Service service;
...
- public String sayHalloByService() {
+ public String sayHalloByService()
+ {
return service.go();
}
...
-}</pre></div><p>Then, in the test class:</p><div class="source"><pre class="prettyprint">
-@RunWith(JUniceRunner.class)
-public class SimpleTest {
+}</pre></div><p>Then, in the test class:</p><div class="source"><pre class="prettyprint">@RunWith( OnamiRunner.class )
+public class SimpleTest
+{
//Create and inject a simple EasyMock Strict mock
- @org.nnsoft.guice.junice.annotation.Mock
+ @org.apache.onami.test.annotation.Mock
private Service service;
@Inject
private HelloWorld helloWorld;
@Test
- public void testMock(){
+ public void testMock()
+ {
//Stub created mock
- EasyMock.expect(service.go()).andReturn("Ciao");
- EasyMock.replay(providedMock);
+ EasyMock.expect( service.go() ).andReturn( "Ciao" );
+ EasyMock.replay( providedMock );
- assertNotNull(service);
- assertEquals("Ciao", helloWorld.sayHalloByService());
+ assertNotNull( service );
+ assertEquals( "Ciao", helloWorld.sayHalloByService());
EasyMock.verify(service);
}
-}</pre></div><div class="section"><h4>Mock resetAfter<a name="Mock_resetAfter"></a></h4><p><b>Note</b> The runner will reset any mock object after each test method. To indicate that a mock has to be resetted manually, fields must to be annotated in this way:</p><div class="source"><pre class="prettyprint">
- ...
+}</pre></div><div class="section"><h4>Mock resetAfter<a name="Mock_resetAfter"></a></h4><p><b>Note</b> The runner will reset any mock object after each test method. To indicate that a mock has to be resetted manually, fields must to be annotated in this way:</p><div class="source"><pre class="prettyprint"> ...
@Mock(resetAfter=false)
private Service service;
- ...</pre></div></div><div class="section"><h4>Mock provider<a name="Mock_provider"></a></h4><p>The Runner class create a simple mock for each <tt>@Mock</tt> annotated filed. You shuld delegate the mock creation to a method in this way:</p><div class="source"><pre class="prettyprint">
-@RunWith(JUniceRunner.class)
-public class SimpleTest {
+ ...</pre></div></div><div class="section"><h4>Mock provider<a name="Mock_provider"></a></h4><p>The Runner class create a simple mock for each <tt>@Mock</tt> annotated filed. You should delegate the mock creation to a method in this way:</p><div class="source"><pre class="prettyprint">@RunWith( OnamiRunner.class )
+public class SimpleTest
+{
- @Mock(providedBy="providerMethod")
+ @Mock( providedBy="providerMethod" )
private Service service;
- public static Service providerMethod() {
- Service mocked = EasyMock.createNiceMock(Service.class);
+ public static Service providerMethod() {
+ Service mocked = EasyMock.createNiceMock(Service.class);
- ...
+ ...
- return mockedService;
- }
+ return mockedService;
+ }
- ...
+ ...
-}</pre></div><p>It's possible also delegate an external class:</p><div class="source"><pre class="prettyprint">
-public class ServiceMockProvider {
+}</pre></div><p>It's possible also delegate an external class:</p><div class="source"><pre class="prettyprint">public class ServiceMockProvider
+{
- public static Service providerMethod() {
- Service mocked = EasyMock.createNiceMock(Service.class);
+ public static Service providerMethod()
+ {
+ Service mocked = EasyMock.createNiceMock( Service.class );
- ...
+ ...
- return mockedService;
- }
-}</pre></div><div class="source"><pre class="prettyprint">
-@RunWith(JUniceRunner.class)
-public class SimpleTest {
+ return mockedService;
+ }
+}</pre></div><div class="source"><pre class="prettyprint">@RunWith( OnamiRunner.class )
+public class SimpleTest
+{
- @Mock(providedBy="providerMethod",
- providerClass=ServiceMockProvider.class)
+ @Mock( providedBy = "providerMethod",
+ providerClass = ServiceMockProvider.class )
private Service service;
...
-}</pre></div></div><div class="section"><h4>Mock type<a name="Mock_type"></a></h4><p>The Runner class create a simple mock for each <tt>@Mock</tt> annotated filed. It's possible specify witch type of mock that the Runner creates. The possible values are:</p><ul><li>EASY_MOCK_NORMAL to create a normal EasyMock object mock (default value)</li><li>EASY_MOCK_STRICT to create a strict EasyMock object mock</li><li>EASY_MOCK_NICE to create a nice EasyMock object mock</li></ul></div></div><div class="section"><h3>Replace module<a name="Replace_module"></a></h3><p><i>JUnice</i> core <i>Runner</i> will replace all existing bindings found into modules declared via <tt>@org.nnsoft.guice.junice.annotation.GuiceModule</tt> and <tt>@org.nnsoft.guice.junice.annotation.GuiceProvidedModules</tt> with mocked object annotated with <tt>org.nnsoft.guice.junice.annotation.Mock</tt></p><p>So given google-guice module:</p><div class="source"><pre class="prettyprint">
-public class ServiceModule extends AbstractModule {
+}</pre></div></div><div class="section"><h4>Mock type<a name="Mock_type"></a></h4><p>The Runner class create a simple mock for each <tt>@Mock</tt> annotated filed. It's possible specify witch type of mock that the Runner creates. The possible values are:</p><ul><li>EASY_MOCK_NORMAL to create a normal EasyMock object mock (default value)</li><li>EASY_MOCK_STRICT to create a strict EasyMock object mock</li><li>EASY_MOCK_NICE to create a nice EasyMock object mock</li></ul></div></div><div class="section"><h3>Replace module<a name="Replace_module"></a></h3><p><i>Apache Onami-Test</i> core <i>Runner</i> will replace all existing bindings found into modules declared via <tt>@org.apache.onami.test.annotation.GuiceModule</tt> and <tt>@org.apache.onami.test.annotation.GuiceProvidedModules</tt> with mocked object annotated with <tt>org.apache.onami.test.annotation.Mock</tt></p><p>So given google-guice module:</p><div class="source"><pre class="prettyprint">public class ServiceModule
+ extends AbstractModule
+{
@Override
- protected void configure() {
- bind(Service.class)
- .to(ServiceImpl.class)
- .asEagerSingleton();
+ protected void configure()
+ {
+ bind( Service.class).to( ServiceImpl.class ).asEagerSingleton();
...
}
-}</pre></div><p>and your implementation</p><div class="source"><pre class="prettyprint">
-public class ServiceImpl implements Service {
+}</pre></div><p>and your implementation</p><div class="source"><pre class="prettyprint">public class ServiceImpl
+ implements Service
+{
- public String go() {
+ public String go()
+ {
return "It's real class";
}
-}</pre></div><div class="source"><pre class="prettyprint">
-@RunWith(JUniceRunner.class)
-@GuiceModules(modules=ServiceModule.class)
-public class TestCustomInjectionTest {
+}</pre></div><div class="source"><pre class="prettyprint">@RunWith( OnamiRunner.class )
+@GuiceModules( ServiceModule.class )
+public class TestCustomInjectionTest
+{
@Mock
private static Service service;
@Test
- public void testOverideModule() throws Exception {
- assertNotNull(service);
+ public void testOverideModule()
+ throws Exception
+ {
+ assertNotNull( service );
- EasyMock.expect(service.go())
- .andReturn("Mocked injected class");
+ EasyMock.expect( service.go() ).andReturn( "Mocked injected class" );
- assertEquals("Mocked injected class", service.go());
+ assertEquals( "Mocked injected class", service.go() );
}
-}
-</pre></div><p>service instance will be injected with the mocked object.</p></div><div class="section"><h3>Multiple annotation for same type<a name="Multiple_annotation_for_same_type"></a></h3><p>It's possible annotate multiple types with the <tt>org.nnsoft.guice.junice.annotation.Mock</tt> annotation</p><p>The Method <tt>GuiceMockModule#configure()</tt> creates a binding for each <tt>org.nnsoft.guice.junice.annotation.Mock</tt> found. The binding will be created <b>if and only if</b> there is no types conflict beetween declared <tt>org.nnsoft.guice.junice.annotation.Mock</tt>.</p><p>A type conflict is detected</p><ul><li>if two or more field are annotated with the same <tt>org.nnsoft.guice.junice.annotation.Mock</tt> and no different <tt>org.nnsoft.guice.junice.annotation.Mock#annotatedWith</tt> parameter are specified for these annotation or,</li><li>two, or more, equals <tt>org.nnsoft.guice.junice.annotation.Mock#annotatedWith</tt> parameter are specified for the same typ
e field.<p>If a conflict is detected the <b>binding will not be created</b> for this conflicted type, and the field will be injected <b>only</b> into the test class. So if necessary you have to create a proper binding for this <tt>org.nnsoft.guice.junice.annotation.Mock</tt> field:</p><div class="source"><pre class="prettyprint">
-@RunWith(JUniceRunner.class)
-public class TestCustomInjectionTest extendes Module {
-
- public void configure(Binder binder) {
- binder.bind(Service.class).toInstance(serviceOne);
+}</pre></div><p>service instance will be injected with the mocked object.</p></div><div class="section"><h3>Multiple annotation for same type<a name="Multiple_annotation_for_same_type"></a></h3><p>It's possible annotate multiple types with the <tt>org.apache.onami.test.annotation.Mock</tt> annotation</p><p>The Method <tt>GuiceMockModule#configure()</tt> creates a binding for each <tt>org.apache.onami.test.annotation.Mock</tt> found. The binding will be created <b>if and only if</b> there is no types conflict beetween declared <tt>org.apache.onami.test.annotation.Mock</tt>.</p><p>A type conflict is detected</p><ul><li>if two or more field are annotated with the same <tt>org.apache.onami.test.annotation.Mock</tt> and no different <tt>org.apache.onami.test.annotation.Mock#annotatedWith</tt> parameter are specified for these annotation or,</li><li>two, or more, equals <tt>org.apache.onami.test.annotation.Mock#annotatedWith</tt> parameter are specified for the same type field.<p>
If a conflict is detected the <b>binding will not be created</b> for this conflicted type, and the field will be injected <b>only</b> into the test class. So if necessary you have to create a proper binding for this <tt>org.apache.onami.test.annotation.Mock</tt> field:</p><div class="source"><pre class="prettyprint">@RunWith( OnamiRunner.class )
+public class TestCustomInjectionTest
+ implements Module
+{
+
+ public void configure( Binder binder )
+ {
+ binder.bind( Service.class ).toInstance( serviceOne );
}
@Mock
@@ -456,11 +445,13 @@ public class TestCustomInjectionTest ext
private HelloWorld helloWorld;
@Test
- public void testOverideModule() throws Exception {
- assertNotNull(serviceOne);
- assertNotNull(serviceTwo);
+ public void testOverideModule()
+ throws Exception
+ {
+ assertNotNull( serviceOne );
+ assertNotNull( serviceTwo );
}
-}</pre></div></li></ul><p>in this case <tt>HelloWorld</tt> class has a dependency with <tt>Service</tt> interface. If you dont specify a proper binding <tt>Google Guice</tt> raises an <tt>com.google.inject.ConfigurationExcepion</tt>.</p></div></div>
+}</pre></div></li></ul><p>in this case <tt>HelloWorld</tt> class has a dependency with <tt>Service</tt> interface. If you don't specify a proper binding <tt>Google Guice</tt> raises an <tt>com.google.inject.ConfigurationExcepion</tt>.</p></div></div>
</div>
</div>
</div>
Modified: incubator/onami/site/test/plugin-management.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/plugin-management.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/plugin-management.html (original)
+++ incubator/onami/site/test/plugin-management.html Sun Dec 9 10:31:23 2012
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Onami-Test - Project Plugin Management</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -41,13 +41,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -197,42 +215,6 @@
<i class="icon-chevron-right"></i>
Project Reports</a>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>
Modified: incubator/onami/site/test/plugins.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/plugins.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/plugins.html (original)
+++ incubator/onami/site/test/plugins.html Sun Dec 9 10:31:23 2012
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Onami-Test - Project Build Plugins</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -41,13 +41,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -197,42 +215,6 @@
<i class="icon-chevron-right"></i>
Project Reports</a>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>
Modified: incubator/onami/site/test/pmd.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/pmd.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/pmd.html (original)
+++ incubator/onami/site/test/pmd.html Sun Dec 9 10:31:23 2012
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Onami-Test - PMD Results</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -41,13 +41,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -169,42 +187,6 @@
</li>
</ul>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>
Modified: incubator/onami/site/test/pmd.xml
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/pmd.xml?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/pmd.xml (original)
+++ incubator/onami/site/test/pmd.xml Sun Dec 9 10:31:23 2012
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
-<pmd version="4.3" timestamp="2012-12-07T22:26:57.177">
-<file name="/Users/olamy/dev/sources/apache/onami/test/src/main/java/org/apache/onami/test/handler/GuiceProvidedModuleHandler.java">
+<pmd version="4.3" timestamp="2012-12-09T11:29:07.028">
+<file name="/Users/stripodi/Documents/apache-workspace/onami/trunk/test/src/main/java/org/apache/onami/test/handler/GuiceProvidedModuleHandler.java">
<violation beginline="113" endline="113" begincolumn="18" endcolumn="55" rule="UnusedPrivateMethod" ruleset="Unused Code Rules" package="org.apache.onami.test.handler" class="GuiceProvidedModuleHandler" method="addModules" externalInfoUrl="http://pmd.sourceforge.net/rules/unusedcode.html#UnusedPrivateMethod" priority="3">
Avoid unused private methods such as 'addModules(Iterable)'.
</violation>
Modified: incubator/onami/site/test/project-info.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/project-info.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/project-info.html (original)
+++ incubator/onami/site/test/project-info.html Sun Dec 9 10:31:23 2012
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Onami-Test - Project Information</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -41,13 +41,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -197,42 +215,6 @@
<i class="icon-chevron-right"></i>
Project Reports</a>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>
Modified: incubator/onami/site/test/project-reports.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/project-reports.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/project-reports.html (original)
+++ incubator/onami/site/test/project-reports.html Sun Dec 9 10:31:23 2012
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Onami-Test - Generated Reports</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -41,13 +41,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -169,42 +187,6 @@
</li>
</ul>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>
Modified: incubator/onami/site/test/project-summary.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/project-summary.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/project-summary.html (original)
+++ incubator/onami/site/test/project-summary.html Sun Dec 9 10:31:23 2012
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Onami-Test - Project Summary</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -41,13 +41,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -197,42 +215,6 @@
<i class="icon-chevron-right"></i>
Project Reports</a>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>
Modified: incubator/onami/site/test/source-repository.html
URL: http://svn.apache.org/viewvc/incubator/onami/site/test/source-repository.html?rev=1418887&r1=1418886&r2=1418887&view=diff
==============================================================================
--- incubator/onami/site/test/source-repository.html (original)
+++ incubator/onami/site/test/source-repository.html Sun Dec 9 10:31:23 2012
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia at Dec 7, 2012
+ | Generated by Apache Maven Doxia at Dec 9, 2012
| Rendered using Apache Maven Fluido Skin 1.3.0
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20121207" />
+ <meta name="Date-Revision-yyyymmdd" content="20121209" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache Onami-Test - Source Repository</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.3.0.min.css" />
@@ -41,13 +41,31 @@
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 07 December 2012</li>
+ <li id="publishDate">Last Published: 09 December 2012</li>
<li class="divider">|</li> <li id="projectVersion">Version: 1.4-incubating-SNAPSHOT</li>
+ <li class="pull-right"> <a href="http://mockito.org/" class="externalLink" title="Mockito">
+ Mockito</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
+ Easy-Mock</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
+ <li class="pull-right"> <a href="http://www.junit.org" class="externalLink" title="JUnit">
+ JUnit</a>
+ </li>
+
+ <li class="divider pull-right">|</li>
+
<li class="pull-right"> <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
Google Guice</a>
</li>
@@ -197,42 +215,6 @@
<i class="icon-chevron-right"></i>
Project Reports</a>
</li>
- <li class="nav-header">External Links</li>
-
- <li>
-
- <a href="http://code.google.com/p/junice/" class="externalLink" title="Project Page">
- <i class="none"></i>
- Project Page</a>
- </li>
-
- <li>
-
- <a href="http://code.google.com/p/google-guice/" class="externalLink" title="Google Guice">
- <i class="none"></i>
- Google Guice</a>
- </li>
-
- <li>
-
- <a href="http://www.junit.org" class="externalLink" title="JUnit">
- <i class="none"></i>
- JUnit</a>
- </li>
-
- <li>
-
- <a href="http://easymock.org/" class="externalLink" title="Easy-Mock">
- <i class="none"></i>
- Easy-Mock</a>
- </li>
-
- <li>
-
- <a href="http://mockito.org/" class="externalLink" title="Mockito">
- <i class="none"></i>
- Mockito</a>
- </li>
<li class="nav-header">Components</li>
<li>