nrainer

Germany

12h
comment Subclass instance to Superclass
Ok. Then I assume that it is not possible to avoid creating the instance of Version, is it? Are we talking about a web application?
13h
comment Subclass instance to Superclass
What is your use case? Why do you need that?
Nov
21
revised Is it considered better form for an abstract class to include abstract methods from an interface?
added 4 characters in body
Nov
20
revised Is it considered better form for an abstract class to include abstract methods from an interface?
added 373 characters in body
Nov
20
answered Is it considered better form for an abstract class to include abstract methods from an interface?
Nov
19
awarded Supporter
Nov
19
comment Unit test being confused by three question marks
Print the loaded value out to the console or write it to the log. There must be an encoding issue. I don't think that JUnit/Hamcrest is the problem.
Nov
19
comment Unit test being confused by three question marks
Where is the data coming from? From a file? Check the encoding.
Nov
19
awarded Yearling
Nov
19
awarded Yearling
Nov
18
answered How to avoid Mockito InvalidUseOfMatchersException
Nov
18
comment JUnit - Catch an exception in the @After section
Then you need your own test runner. See the @RunWith annotation.
Nov
18
comment JUnit - Catch an exception in the @After section
You can extract the code which throws the exception in a method which is inherited by all test classes. So you have to do it only once.
Nov
18
answered JUnit - Catch an exception in the @After section
Nov
18
comment JUnit - Catch an exception in the @After section
What about doing that logic in an @Before method in an abstract class? Would it be possible that your test classes inherit that class?
Nov
18
answered JUnit - Catch an exception in the @After section
Nov
14
awarded Editor
Nov
14
revised IsNullOrWhiteSpace check for Java
added 3 characters in body
Nov
14
awarded Teacher
Nov
14
answered Check if two strings are anagrams
1 2 3 4 5