title: Webdriver test Script Does not stop after assert failure
body: <p>In my webdriver script I have the three methods </p>
  
  <pre><code>setup, test and tearDown
  </code></pre>
  
  <p>following the junit convention.</p>
  
  <p>In the <code>test</code> method I have few asserts like this</p>
  
  <pre><code>@Test
  public void testStudentHome() throws Exception {
      String classCode = "I6OWW";
      Utilities.studentSignin(driver, baseUrl);
      assertEquals(true, sth.openNotification());
      assertEquals("My Scores", sth.myScores(true));
  }
  </code></pre>
  
  <p>The <code>sth</code> is the PageObject on which I am performing the tests and that I have created in the <code>setup</code> method.</p>
  
  <p>I am calling all these three methods from a <code>main</code> method like this:</p>
  
  <pre><code>public static void main(String[] args) {
          StudentHomeTest sht = new StudentHomeTest();
          try {
              sht.setup();
              sht.testStudentHome();
              sht.tearDown();
          } catch (Exception ex) {
              Logger.getLogger(StudentHomeTest.class.getName()).log(Level.SEVERE, null, ex);
              sht.tearDown();
          }
      }
  </code></pre>
  
  <p>Now while running the test if some assertion fails the test method should (this is what I expect) throw an exception and the <code>main</code> method should call the <code>tearDown</code> method. But this does not happen. and the browser window continues to stay there. 
  I am using the netbeans ide for running the test.</p>