Win a copy of Fixing your Scrum this week in the Agile forum!

Marcin Kwiatkowski

Ranch Hand
+ Follow
since Aug 06, 2007
Marcin likes ...
Eclipse IDE Ruby Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Marcin Kwiatkowski

No, it means "apply the given style to all label tags with upload class", so that it would be applied to <label class="upload">...</label>, but not to <label>...</label>
You have to open Developers Tools (F12) in order to access console in IE8.
label.upload matches label element with upload class: <label class="upload">
innerHTML is broken in IE and depending on your use case there are different workarounds. For example:
You can implement the whole thing in JavaScript, simply display a popup after given time.
PowerMock is an extension for either EasyMock or Mockito. Are you sure you're using Mockito version?
9 years ago
Hi!

Take a look at getClass() method documentation. Why don't you use File[].class instead?
9 years ago
Hi!

Using "src/test/java" is not a bad idea. I can't imagine a scenario where you'd have to package them as a jar. If you going to run them on some kind of CI server then you'd probably use maven anyway. Also why would you ever need to write unit tests for selenium tests?

The way I've done it in the past is using something like "src/acceptance-test/java", but that requires some adjustments in your build script and ide.
9 years ago
You're compiling files not classes. Using your example, javac Apple.java compiles Apple.java file not Apple class.
10 years ago
Code would be easier to read if you placed it in appropriate tag.

What you mean by servlet doesn't work? Does it throw any exceptions?
10 years ago
This is because they count childNodes in different way. Firefox counts every single textNode (gap between tags). You could use "if (childNode.nodeType == 3)" to check if given node is textNode.
Other use case is Factory Method pattern
10 years ago
It depends on toString() implementation.

Implementation in String class looks like this :

so in your case the output would be "true".

10 years ago
Here's the syntax you can use:

10 years ago
JSP
double quote should help
10 years ago