Ahetuki Neti

Greenhorn
+ Follow
since May 29, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 Ahetuki Neti

same issue here. I am using weblogic 9.*
17 years ago
Very simple! Instead of having different threads running parallely I want to force the usage of a single thread (mock) through all business classes.
Let me give an example:
In my unit test I create a row in an empty table -> event is fired -> Somehow the event handling (swing thread) is slower than the next step in my test case: Verifying a value in the created row -> I get ArrayOutOfBoundException because the row is not yet created!
19 years ago
In my GUI code, I have two types of threads functioning:
1. Java threads in the model fetching data from the server. These threads help in doing some background processing (lazy loading).
2. Swing threads (I dont have any control/reference to it) that function beyond my control in the events like "fireTableRowChanged.." etc.

The first type of threads can be easily controlled by me because I have references to them (I use a factory to generate them and I can easily mock them by mocking the factory). But the later ones are beyond my control and these are the ones which I need to control. I need to mock them so that all the threads in my junit tests become synchronous!
19 years ago
I want to mock the swing thread in my junit test so that I can easy unit tests for GUI. Could you please let me whether it is possible and how?
19 years ago
I would like to do freelancing in Java/j2EE fields.
Please contact ahetuki@yahoo.com.
Thanks.
20 years ago


This is what I am getting when I create a connection factory instance in a multi-threaded scenario.
Please help me in resolving the issue. Thanks!
20 years ago
Thanks a lot for the patience!
I understood the syntax and scope of the static classes (always inner?) but didn't unnderstand its usage and application.
21 years ago
Michael,
That went way above my head! Could you try explaining that in other words for this confused fellow?
21 years ago
Composite1 should be used when the member class A doesn't need parameterised initialization.
Composite2 should be strongly discouraged.
Composite3 is perfect for the situation where the member class A needs a parameter for it's initialization.
21 years ago
JSP approach fails when for some reason you need to flush the output stream!
So let us not use JSP for logic development!
21 years ago
What is the significance of a static class? Why do we need them?
21 years ago
That was kool, Michael!
Instead of using the Factory pattern we could have used the State pattern too. Am I correct? :roll:
21 years ago
What is the difference between aggregation and composition?
Use getBytes() on the string object and find the length of the byte array.
21 years ago
Just to add to Michael's words:
Object Oriented programming is all about separting the implementation from the presentation.
Of course, interface and abstract classes are the two key concepts to achieve that.
21 years ago