title: How to write the positive and Negative test cases of same scenario in java?
body: <p>I want to write the both test cases whether positive scenario and negative scenario.</p>
  
  <p>My sample code is,</p>
  
  <pre><code>    /**
       * 
       */
      public void testgetAsnAccuracyInstanceType() throws Exception
      {
          String METHOD_NAME = "testgetAsnAccuracyInstanceType";
          log.entering(CLASS_NAME, METHOD_NAME);
  
           //Rating Element "1" ASN Accuracy
           populateForTestMethodValues("1");
           populateWeekOfList();
           List&lt;WeeklyDeliveryInstanceTypeQO&gt; asnAccuracyInstanceTypeList = weeklyDlvyInstancesDashboardReportForm.getAsnAccuracyInstanceType();
           assertTrue("testgetASNAccuracyRatingElement is Not Empty: ", asnAccuracyInstanceTypeList.size() &gt; 0);
           log.exiting(CLASS_NAME, METHOD_NAME);
      }
  </code></pre>