title: What's the proper way to test multiple constructors in Junit?
body: <p>Should I ignore unit tests for new constructors? Should I make a new Test class for the different constructors and just copy the tests? The tests themselves did not change. It would be nice if there was a way to run every test just with different constructors. To visualize what's going on, I added code below.</p>
  
  <p>I had a class that looked like this:</p>
  
  <pre><code>public class Foo {
      public Foo() {...}
  
      public void doStuff(){...}
      public void doThing(){...}
  }
  </code></pre>
  
  <p>And I have a test class that looked like this:</p>
  
  <pre><code>public class FooTest {
      Foo foo;
  
      @Before
      public void setUp() {
          foo = new Foo();
      }
  
      @Test
      public void fooCanDoThing() {
          foo.doThing();
          assertThat(...);
      }
  
      @Test
      public void fooCanDoStuff() {
          foo.doStuff();
          assertThat(...);
      }
  }
  </code></pre>
  
  <p>I recently had a task that included adding more constructors to my foo class</p>
  
  <pre><code>public class Foo {
      ...
      public Foo(String bleh) {...}
      public Foo(String bleh, String blah) {...}
      ...
  }
  </code></pre>
  
  <p>What is the best way to go about testing with multiple constructors?</p>
  
  <p>Edit: To clear up some things, foo extends thing</p>
  
  <pre><code>public class Foo extends Thing {...}
  </code></pre>
  
  <p>Lets say that Thing has and handled function of <code>getBlah</code> and I already tested for <code>getBlah</code>. But now, I can actually set my own "blah."</p>