title: running a geb test from a java class
body: <p>I've recently stumbled across <a href="http://www.gebish.org/" rel="nofollow">geb</a> and it looks like a good way to perform integration tests on our web applications. Our platforms are all java based and from reading that </p>
  
  <blockquote>
    <p>"Geb provides first class support for functional web testing via
    integration with popular testing frameworks such as ...JUnit,
    TestNG..."</p>
  </blockquote>
  
  <p>i assumed it would be easy to execute a test from a java class (testng test?).</p>
  
  <p>I'm new to groovy and geb.</p>
  
  <p>So far I have included geb-testng and groovy in my pom:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.geb&lt;/groupId&gt;
      &lt;artifactId&gt;geb-testng&lt;/artifactId&gt;
      &lt;version&gt;0.7.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
      &lt;artifactId&gt;groovy&lt;/artifactId&gt;
      &lt;version&gt;1.8.6&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>... However i can't find any examples of creating a test and running it from a java class.</p>
  
  <p>help appreciated.</p>