You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ace.apache.org by ja...@apache.org on 2012/08/15 13:54:53 UTC

svn commit: r1373356 - /ace/site/trunk/content/dev-doc/writing-tests.mdtext

Author: jawi
Date: Wed Aug 15 11:54:53 2012
New Revision: 1373356

URL: http://svn.apache.org/viewvc?rev=1373356&view=rev
Log:
Some additional clarification on the before/after methods.

Modified:
    ace/site/trunk/content/dev-doc/writing-tests.mdtext

Modified: ace/site/trunk/content/dev-doc/writing-tests.mdtext
URL: http://svn.apache.org/viewvc/ace/site/trunk/content/dev-doc/writing-tests.mdtext?rev=1373356&r1=1373355&r2=1373356&view=diff
==============================================================================
--- ace/site/trunk/content/dev-doc/writing-tests.mdtext (original)
+++ ace/site/trunk/content/dev-doc/writing-tests.mdtext Wed Aug 15 11:54:53 2012
@@ -103,7 +103,8 @@ The first we need to do is create our te
 
 Having explained that our test depends upon the 'UserAdmin' service, and that its a required dependency, means that our test won't run if this service is not available[^5].
 
-Sometimes, you need to do some additional set up before or after the dependencies are resolved. For example, one might need to provision some configuration in order to get dependencies in the correct state, or wait until some other condition is met after all dependencies have been resolved. In order to do this, one can override the `before()` or `after()` methods in `IntegrationTestBase`. For our simple integration test, however, we do not need such "advanced" set up.
+Sometimes, you need to do some additional set up before or after the dependencies are resolved. For example, one might need to provision some configuration in order to get dependencies in the correct state, or wait until some other condition is met after all dependencies have been resolved. In order to do this, one can override the `before()` or `after()` methods[^6] in `IntegrationTestBase`.  
+For our simple integration test, however, we do not need such "advanced" set up.
 
 The only thing left is the actual test itself. As the 'UserAdmin' service is being tracked for us, we can simply direct use it in our test:
 
@@ -141,3 +142,5 @@ When running Eclipse, you can also run y
 [^4]: This helper class can be found in the `org.apache.ace.test` project.
 
 [^5]: To be more precise: the test will wait a couple of seconds to allow all dependencies to be satisfied. If after this waiting period any dependency is not satisfied, the test will fail.
+
+[^6]: The naming of these methods could use a second thought, see also: https://issues.apache.org/jira/browse/ACE-289