title: Can't access parent class methods in a JUnit test case
body: <p>I'm trying to test an abstract class "Comando" which has a few dozen inherited classes. What I actually want to test are the many different chuld classes, to test each different behaviour ("Comando" translates to Command), and my test case is something like:</p>
  
  <pre><code>public void testComandoGetInfo() {
      ComandoGetInfo cmd = new ComandoGetInfo(equip);
      equip.executarComando(cmd, true, true);
      cmd.getStatus();
  }
  </code></pre>
  
  <p>Notice the line <code>cmd.getStatus()</code>. When I write this line NetBeans gives me a "method not found" compilation error. When I toggle code completion, I can't see any of Comando's methods, only the TestCase testing methods and the single method that's on ComandoGetInfo class.</p>
  
  <p>ComandoGetInfo is a class that extends Comando, which have many, many methods and variables, both public and private.</p>
  
  <p>So why can't I access any method (I mean ANY, even getters, setters, public methods or variables, anything, not even static ones) of the parent class Comando, and how to test it if I can't?</p>
  
  <p><strong>EDIT:</strong> Found what the error was. I simply had my test class named exactly as my original class, so the test class for the Comando.java was... Comando.java, in the same package of the test folder. Everything came back to normal after I renamed the file to the correct name "ComandoTest.java".</p>