Main.java:11: error: class ExceptionTests is public, should be declared in a file named ExceptionTests.java
public class ExceptionTests {
^
Main.java:3: error: package org.hamcrest does not exist
import static org.hamcrest.CoreMatchers.is;
^
Main.java:3: error: static import only from classes and interfaces
import static org.hamcrest.CoreMatchers.is;
^
Main.java:4: error: package org.junit does not exist
import static org.junit.Assert.assertThat;
^
Main.java:4: error: static import only from classes and interfaces
import static org.junit.Assert.assertThat;
^
Main.java:5: error: package org.junit does not exist
import static org.junit.Assert.fail;
^
Main.java:5: error: static import only from classes and interfaces
import static org.junit.Assert.fail;
^
Main.java:9: error: package org.junit does not exist
import org.junit.Test;
^
Main.java:13: error: cannot find symbol
@Test(expected = IndexOutOfBoundsException.class)
^
symbol: class Test
location: class ExceptionTests
Main.java:18: error: cannot find symbol
@Test
^
symbol: class Test
location: class ExceptionTests
Main.java:22: error: cannot find symbol
fail("Expected an IndexOutOfBoundsException to be thrown");
^
symbol: method fail(String)
location: class ExceptionTests
Main.java:25: error: cannot find symbol
is("Index: 0, Size: 0"));
^
symbol: method is(String)
location: class ExceptionTests
12 errors