Syntax error on token "package", assert expected [message #1338998] |
Wed, 07 May 2014 09:15  |
Eclipse User |
|
|
|
I recieve the following error after "Inspect"of my scrapbook and I can not find the sollution.! I did add the import Assert in the source and the junit.framework.Assert in the import for MyScrapBook, but it is not helping
error I see: Syntax error on token "package", assert expected
package nl.visionfactory.www;
import java.util.ArrayList;
import junit.framework.TestCase;
import junit.framework.Assert;
class MyLibraryTest {
private Book b0;
private Book b1;
private Book b2;
private Person p0;
private Person p1;
private Person p3;
private MyLibrary ml;
//test the constructor for this library
public void testMyLibrary(){
ml = new MyLibrary ("Test");
assertEquals("Test", ml.name);
assertTrue(ml.books instanceof ArrayList);
assertTrue(ml.people instanceof ArrayList);
}
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.08389 seconds