title: the attribute expected is undefined for the annotation type test
body: <p>Hi I am trying to test a code that has an exception but when I try to test it 
  it says the attribute expected is undefined for the annotation type test </p>
  
  <pre><code>package Lab1;
  
  import static org.junit.jupiter.api.Assertions.*;
  
  import org.junit.jupiter.api.Test;
  
  import junit.framework.Assert;
  
  class MyMathTest {
      MyMath m = new MyMath();
      @Test
      void testDiv() {
          int actual = m.div(6, 2);
          int expected = 3;
          assertEquals(expected, actual);
      }
      /* the error is in the upcoming line*/
      @Test (expected = IllegalArgumentException.class)
      public void testDivException(){
          m.div(5, 0);
      }
  
  }
  </code></pre>
  
  <p>And here is the error message</p>
  
  <blockquote>
    <p>the attribute expected is undefined for the annotation type test</p>
  </blockquote>