nrainer

Germany

1d
comment Structure like Java's EnumSet that can hold repeated elements
I would simply use a Queue (The LinkedList implements this interface). Initialize the queue with the items, shuffle it and poll the first element. You don't need a Set.
1d
comment Structure like Java's EnumSet that can hold repeated elements
Randomly in the sense of random access or of picking an arbitrary element?
1d
comment Structure like Java's EnumSet that can hold repeated elements
What do you want to do with the enums after extracting them? What is the usage behaviour: extract all of the same type, consume one (remove one), ...?
Jan
22
revised Branch Coverage and Assert Coverage?
deleted 1 character in body
Jan
20
revised eclemma branch coverage for switch: 7 of 19 missed
edited body
Jan
20
answered Total row in Scout Eclipse
Jan
20
comment Java 7 cobertura code branch coverage with string switch statements
Concerning EclEmma you can have a look at this answer: stackoverflow.com/a/28015212/584532
Jan
19
revised eclemma branch coverage for switch: 7 of 19 missed
added 3 characters in body
Jan
19
revised eclemma branch coverage for switch: 7 of 19 missed
added 20 characters in body
Jan
18
revised eclemma branch coverage for switch: 7 of 19 missed
added 28 characters in body
Jan
18
revised eclemma branch coverage for switch: 7 of 19 missed
added 485 characters in body
Jan
18
revised eclemma branch coverage for switch: 7 of 19 missed
added 485 characters in body
Jan
18
answered eclemma branch coverage for switch: 7 of 19 missed
Jan
17
comment Can we create a mocked instance of java.lang.Class with PowerMock?
Why is that? Can you access the class via someObject.getClass().getClassLoader().loadClass("org.package.Class")? (someObjectis the one of your if condition)
Jan
16
answered Can we create a mocked instance of java.lang.Class with PowerMock?
Jan
16
revised Branch Coverage and Assert Coverage?
added 45 characters in body
Jan
16
comment Junit 4 how to initialize in test suite and pass it to test classes
"Will it be available to sub-classes as instance variable?" It depends on the modifier, but I don't know whether it is required to be public or not. "[...] why I asked if individual test classes can be prevented [...]" That is not a problem, simply add a condition. If the client variable is null, do the initialization and assign it, otherwise do nothing.
Jan
16
revised Junit 4 how to initialize in test suite and pass it to test classes
added 63 characters in body
Jan
16
answered Junit 4 how to initialize in test suite and pass it to test classes
Jan
14
comment Type hierarchy only from JDK
You are right, I edited the post. It is working if you type *.java. instead of java.. And yes, I had written in the post only exceptions in packages which begin with java will be found. However, this should apply to most JDK exceptions.
1 2 3 4 5