I am trying to populate a variable, UPDATE_VALUES, from the fvalue hardcoded values for a JUNITtest. I need all 3 sets of UPDATE_VALUES to push into a SQL statement where an AND statement is created to hold each of the UPDATE_VALUES. Hope that makes sense. Any help or direction would be appreciated.
Here is my code.
[ September 14, 2005: Message edited by: Michael Ernest ]
I'm guessing you're getting a null pointer exception?
what i think is happening is that while you declare your array to hold three elements, you have never CREATED those elements. In other words, your array is all set and waiting to hold three Values. when you call
you're saying "call the method setFieldValue() on the object in position i". There IS no object there.
you need to create three Values, and set each element of the array to point to them.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors