Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change 
notification.

The "Hbase/HowToContribute" page has been changed by JamieFrench.
http://wiki.apache.org/hadoop/Hbase/HowToContribute?action=diff&rev1=59&rev2=60

--------------------------------------------------

    * All test class names should start with {{{Test}}}.
    * Use JUnit4 annotations for defining before and after method / class 
invocations, for example {{{@Before}}}
    * Some classes may still extend {{{junit.framework.TestCase}}} based on the 
old version of JUnit. If you need to modify these files, migrate them to the 
JUnit4 convention.
-   * Define methods within your class whose names begin with {{{test}}} and 
annotate them with {{{@Test}}}, and call JUnit's many assert methods to verify 
conditions; these methods will be executed when you run {{{mvn test}}}.
+   * Define methods within your class whose names begin with {{{test}}} and 
annotate them with {{{@Test}}}, and call JUnit's many assert methods to verify 
conditions; these methods will be executed when you run {{{mvn 
test}}}[[http://www.übersetzungsbüro-frankfurt.de .]]
    * By default, do not let tests write any temporary files to {{{/tmp}}}.  
Instead, the tests should write to the location specified by the 
{{{test.build.data}}} system property. The 
{{{org.apache.hadoop.hbase.HBaseTestingUtility}}} class has some utility 
methods to assist with this.
-   * If a HBase cluster is needed by your test, you should use the 
{{{org.apache.hadoop.hbase.HBaseTestingUtility}}} to start and stop the 
cluster. See the {{{org.apache.hadoop.hbase.client.TestAdmin}}} and 
{{{org.apache.hadoop.hbase.client.TestFromClientSide}}} classes as these are 
good examples of how the testing utilities can be used.
+   * If a HBase cluster is needed by your test, you should use the 
{{{org.apache.hadoop.hbase.HBaseTestingUtility}}} to start and stop the 
cluster. See the {{{org.apache.hadoop.hbase.client.TestAdmin}}} and 
{{{org.apache.hadoop.hbase.client.TestFromClientSide}}} classes as these are 
good examples of how the testing utilities can be 
used[[http://www.xn--bersetzungsbro-berlin-7hcm.net/ .]]
-   * Place your class in the {{{src/test}}} tree.
+   * Place your class in the {{{src/test}}} 
tree[[http://www.übersetzungsbüro-stuttgart.de .]]
    * You can run all the unit tests with the command {{{mvn test}}}, or you 
can run a specific unit test with the command {{{mvn test -Dtest=<ClassName>}}} 
(For example {{{mvn test -Dtest=TestHBaseCluster}}})
    * If you want to quickly build the code without running the tests you can 
run the command {{{mvn install -DskipTests}}}
    * If your test requires a port, be sure to use an ephemeral port by 
requesting port 0 in your code and passing the assigned port to the client.

Reply via email to