@Test
public void testFoo() {
checkSomething();
}
private void checkSomething() {
assertTrue(true);
}
I think it's a common practice to factorize methods in unit tests to avoid code duplication.
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/2fa0395d-df28-4f30-a0cc-251443dd511e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/1b43a8bb-025f-4994-8bbb-a8ac9f1d97bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.