hi,
i am new to java and i am using eclipse for java coding when i run a build.xml file it says build fail and says "Compile failed; see the compiler error output for details." and points to the code below.
does anyone know the reason for this,

<javac
       srcdir="${src.test}"
       destdir="${bld.test}"
       includes="${test.pat}"
       excludes="${exclude.pat}"
       source="${source.version}"
       deprecation="on"
       debug="on"
      >

appreciate any commets

thanks

Recommended Answers

All 3 Replies

the error message are

Buildfile: C:\Users\Krishni\workspace\hw-03\build.xml
initbuild:
     [echo] Type "ant -projecthelp" for help
     [echo] The following values may be set in the file build.properties:
     [echo]   project.name   = hw3
     [echo]   main.name      = shop.main.Main
     [echo]   resource.pat   = resources/**/*
     [echo]   source.version = 1.6
     [echo]   compiler.args  = -Xlint
source:
      [zip] Building zip: C:\Users\Krishni\workspace\hw-03\bin\hw3-src.zip
     [echo] You may now hand in the file "bin/hw3-src.zip"
compile:
jar:
test:
     [echo] Using compilerarg value="-Xlint"
    [javac] C:\Users\Krishni\workspace\hw-03\build.xml:241: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 6 source files to C:\Users\Krishni\workspace\hw-03\bin\classes
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\command\CommandHistoryTEST.java:3: package junit.framework does not exist
    [javac] import junit.framework.Assert;
    [javac]                       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\command\CommandHistoryTEST.java:4: package junit.framework does not exist
    [javac] import junit.framework.TestCase;
    [javac]                       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\command\CommandHistoryTEST.java:6: cannot find symbol
    [javac] symbol: class TestCase
    [javac] public class CommandHistoryTEST extends TestCase {
    [javac]                                         ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:3: package junit.framework does not exist
    [javac] import junit.framework.Assert;
    [javac]                       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:4: package junit.framework does not exist
    [javac] import junit.framework.TestCase;
    [javac]                       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:7: cannot find symbol
    [javac] symbol: class TestCase
    [javac] public class DataTEST extends TestCase {
    [javac]                               ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:3: package junit.framework does not exist
    [javac] import junit.framework.Assert;
    [javac]                       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:4: package junit.framework does not exist
    [javac] import junit.framework.TestCase;
    [javac]                       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:17: cannot find symbol
    [javac] symbol: class TestCase
    [javac] public class InventoryTEST extends TestCase {
    [javac]                                    ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\VideoTEST.java:3: package junit.framework does not exist
    [javac] import junit.framework.Assert;
    [javac]                       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\VideoTEST.java:4: package junit.framework does not exist
    [javac] import junit.framework.TestCase;
    [javac]                       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\VideoTEST.java:6: cannot find symbol
    [javac] symbol: class TestCase
    [javac] public class VideoTEST extends TestCase {
    [javac]                                ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\main\TEST1.java:3: package junit.framework does not exist
    [javac] import junit.framework.Assert;
    [javac]                       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\main\TEST1.java:4: package junit.framework does not exist
    [javac] import junit.framework.TestCase;
    [javac]                       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\main\TEST1.java:21: cannot find symbol
    [javac] symbol: class TestCase
    [javac] public class TEST1 extends TestCase {
    [javac]                            ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\main\TEST2.java:3: package junit.framework does not exist
    [javac] import junit.framework.Assert;
    [javac]                       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\main\TEST2.java:4: package junit.framework does not exist
    [javac] import junit.framework.TestCase;
    [javac]                       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\main\TEST2.java:12: cannot find symbol
    [javac] symbol: class TestCase
    [javac] public class TEST2 extends TestCase {
    [javac]                            ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\command\CommandHistoryTEST.java:13: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.command.CommandHistoryTEST
    [javac]     Assert.assertSame(null, h.topUndoCommand());
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\command\CommandHistoryTEST.java:14: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.command.CommandHistoryTEST
    [javac]     Assert.assertSame(null, h.topRedoCommand());
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\command\CommandHistoryTEST.java:15: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.command.CommandHistoryTEST
    [javac]     Assert.assertFalse(h.getUndo().run());
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\command\CommandHistoryTEST.java:16: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.command.CommandHistoryTEST
    [javac]     Assert.assertFalse(h.getRedo().run());
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\command\CommandHistoryTEST.java:20: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.command.CommandHistoryTEST
    [javac]     Assert.assertSame(topUndo, h.topUndoCommand());
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\command\CommandHistoryTEST.java:21: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.command.CommandHistoryTEST
    [javac]     Assert.assertSame(topRedo, h.topRedoCommand());
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\command\CommandHistoryTEST.java:92: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.command.CommandHistoryTEST
    [javac]     Assert.assertTrue(!_didRun && !_didUndo && !_didRedo);
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\command\CommandHistoryTEST.java:96: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.command.CommandHistoryTEST
    [javac]     Assert.assertTrue(!_didRun && _didUndo && !_didRedo);
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\command\CommandHistoryTEST.java:100: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.command.CommandHistoryTEST
    [javac]     Assert.assertTrue(!_didRun && !_didUndo && _didRedo);
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:19: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.DataTEST
    [javac]     Assert.assertSame(title1, v1.title());
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:20: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.DataTEST
    [javac]     Assert.assertEquals(year, v1.year());
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:21: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.DataTEST
    [javac]     Assert.assertSame(director1, v1.director());
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:24: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.DataTEST
    [javac]     Assert.assertEquals(title1, v2.title());
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:25: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.DataTEST
    [javac]     Assert.assertEquals(director1, v2.director());
    [javac]     ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:31: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.DataTEST
    [javac]       Assert.fail();
    [javac]       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:35: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.DataTEST
    [javac]       Assert.fail();
    [javac]       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:41: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.DataTEST
    [javac]       Assert.fail();
    [javac]       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:48: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.DataTEST
    [javac]       Assert.fail();
    [javac]       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:52: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.DataTEST
    [javac]       Assert.fail();
    [javac]       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:56: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.DataTEST
    [javac]       Assert.fail();
    [javac]       ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:64: cannot find symbol
    [javac] symbol  : method fail()
    [javac] location: class shop.data.DataTEST
    [javac] 		  fail();
    [javac] 		  ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:68: cannot find symbol
    [javac] symbol  : method fail()
    [javac] location: class shop.data.DataTEST
    [javac] 		  fail();
    [javac] 		  ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:72: cannot find symbol
    [javac] symbol  : method fail()
    [javac] location: class shop.data.DataTEST
    [javac] 		  fail();
    [javac] 		  ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:78: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.DataTEST
    [javac] 		      Assert.assertEquals( s, "A (2000) : B" );
    [javac] 		      ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:80: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.DataTEST
    [javac] 		      Assert.assertEquals( s, "A (2000) : B" );
    [javac] 		      ^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:85: cannot find symbol
    [javac] symbol  : method assertTrue(boolean)
    [javac] location: class shop.data.DataTEST
    [javac] 		assertTrue(inventory instanceof InventorySet);
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\DataTEST.java:86: cannot find symbol
    [javac] symbol  : method assertEquals(int,int)
    [javac] location: class shop.data.DataTEST
    [javac] 		assertEquals(0, inventory.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:30: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(0, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:33: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(2, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:35: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(1, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:37: cannot find symbol
    [javac] symbol  : method fail()
    [javac] location: class shop.data.InventoryTEST
    [javac] 			fail();
    [javac] 			^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:39: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals("B (2000) : B [3,0,0]", s.get(v2).toString());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:43: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals("B (2000) : B [10,0,0]", s.get(v2).toString());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:49: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(0, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:53: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(2, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:54: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(1, hold.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:62: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(1, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:63: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals("B (2000) : B [10,0,0]", s.get(v2).toString());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:67: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(0, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:69: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(1, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:71: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(1, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:73: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(2, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:75: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(1, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:77: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(0, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:82: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(0, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:86: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(0, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:90: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(v1, s.get(v1).video());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:91: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(1, s.get(v1).numOwned());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:93: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(null, recReturn);
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:100: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(3, s.get(v1).numOwned());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:101: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(1, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:104: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(recOld, recReturn);
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:105: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertTrue(recReturn != s.get(v1));
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:110: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(2, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:111: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(5, s.get(v2).numOwned());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:112: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(3, s.get(v1).numOwned());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:117: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(2, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:118: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(2, s.get(v2).numOwned());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:122: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(1, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:123: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertTrue(s.get(v2) == null);
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:127: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(0, s.size());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:128: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertTrue(s.get(v1) == null);
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:138: cannot find symbol
    [javac] symbol  : method fail()
    [javac] location: class shop.data.InventoryTEST
    [javac] 			fail();
    [javac] 			^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:143: cannot find symbol
    [javac] symbol  : method fail()
    [javac] location: class shop.data.InventoryTEST
    [javac] 			fail();
    [javac] 			^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:149: cannot find symbol
    [javac] symbol  : method fail()
    [javac] location: class shop.data.InventoryTEST
    [javac] 			fail();
    [javac] 			^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:155: cannot find symbol
    [javac] symbol  : method fail()
    [javac] location: class shop.data.InventoryTEST
    [javac] 			fail();
    [javac] 			^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:162: cannot find symbol
    [javac] symbol  : method fail()
    [javac] location: class shop.data.InventoryTEST
    [javac] 			fail();
    [javac] 			^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:172: cannot find symbol
    [javac] symbol  : method fail()
    [javac] location: class shop.data.InventoryTEST
    [javac] 			fail();
    [javac] 			^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:178: cannot find symbol
    [javac] symbol  : method fail()
    [javac] location: class shop.data.InventoryTEST
    [javac] 			fail();
    [javac] 			^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:186: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(5, s.get(v1).numOwned());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:187: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(1, s.get(v1).numOut());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:188: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(1, s.get(v1).numRentals());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:189: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(recOld, recReturn);
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:190: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertTrue(recReturn != s.get(v1));
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:192: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(5, s.get(v1).numOwned());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:193: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(2, s.get(v1).numOut());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:194: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(2, s.get(v1).numRentals());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:199: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(5, s.get(v1).numOwned());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:200: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(1, s.get(v1).numOut());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:201: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(2, s.get(v1).numRentals());
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:202: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertEquals(recOld, recReturn);
    [javac] 		^
    [javac] C:\Users\Krishni\workspace\hw-03\src\shop\data\InventoryTEST.java:203: cannot find symbol
    [javac] symbol  : variable Assert
    [javac] location: class shop.data.InventoryTEST
    [javac] 		Assert.assertTrue(recReturn != s.get(v1));
    [javac] 		^
    [javac] 100 errors

BUILD FAILED
C:\Users\Krishni\workspace\hw-03\build.xml:241: Compile failed; see the compiler error output for details.

Total time: 1 second

i had to add the junit.jar as a global variable in eclipse
thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.