title: Change Assert behavior as per different parameters in Parameterized Junit test cases
body: <p>Is it possible to change the assert behavior as per the parameters of the @Parameters method.</p>
  
  <pre><code>Class abcTest
  {
    ..
    @Parameters
    public static Collection&lt;Object[]&gt; testParameters()
    {
          return Arrays.asList(new Object[][] {
          {1},{2} 
          });
    }
  
    ..
    @Test
    public void test()
    {
      ...
      if(num == 1) { assertTrue(..); }
      if(num == 2) { assertFalse(..); }
      ...
    }
  }
  </code></pre>
  
  <p>is it possible to define the assert behavior exactly the way we define parameters?</p>
  
  <p>Thanks in advance.</p>