I think it is in the same directory. I did some changes and it still is erroring out. here are the changes:
public class AutomobileTest
{
/**
Tests the methods of the Door class
@param args not used
*/
public static void main(String[] args)
{
Automobile frontAutomobile = new Automobile("Front", "open","25");
System.out.println("The front door is " + frontAutomobile.getMake());
System.out.println("Expected: open");
Automobile backAutomobile = new Automobile("Back", "closed","29");
System.out.println("The back door is " + backAutomobile.getModel());
System.out.println("Expected: closed");
Automobile frontAutomobile = new Automobile("Front", "open",1200);
// Use the mutator to change the state variable
backAutomobile.setMake("open");
System.out.println("The back door is " + backAutomobile.getMake());
System.out.println("Expected: open");
// Add code to
test the setName mutator here
}
}
And here is the exact error message:
----jGRASP exec: javac -g AutomobileTest.java
AutomobileTest.java:12: cannot find symbol
symbol : constructor Automobile(java.lang.String,java.lang.String,java.lang.String)
location: class Automobile
Automobile frontAutomobile = new Automobile("Front", "open","25");
^
AutomobileTest.java:15: cannot find symbol
symbol : constructor Automobile(java.lang.String,java.lang.String,java.lang.String)
location: class Automobile
Automobile backAutomobile = new Automobile("Back", "closed","29");
^
AutomobileTest.java:19: frontAutomobile is already defined in main(java.lang.String[])
Automobile frontAutomobile = new Automobile("Front", "open",1200);
^
3 errors
----jGRASP wedge2: exit code for process is 1.
----jGRASP: operation complete.