Praveen Seluka

Ranch Hand
+ Follow
since Jul 17, 2007
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 Praveen Seluka

Hi Ernest

It's also possible to do code coverage at the JVM level, using the same APIs that are used to implement breakpoints in a debugger. This is generally less efficient, though.



It will be great if you can point me to some resources to know about this.
12 years ago
Thanks Henry and Ernest.

From your comments, I understood that

1. Generally instrumentation happens on copy of original source.
2. they use counters to get the info if its traversed

From online resources, I found they would use CGLIB to do bytecode instrumentation. Normally, after a testsuite ran we can see the code coverage. So this means, the testsuite ran against instrumented classes and not the actual one.

I know that there are some security issues and some stuff related to digital signature. Dont they play any role.
12 years ago
Hi all,

I am looking for some article which explains how a code coverage tool works. Popular tools like emma and cobertura use byte code instrumentation. Byte code manipulation happens in original class file itself ? or it makes a copy and does manipulation there?

These tools provide code coverage for every line. So do these really add lot of code to find if it each line is traversed?

The doubt i have is , what will the instrumented file look like? Instrumentation code at each line ?

Thanks
Praveen
12 years ago
Hi all,

We use surefire plug-in in maven. I wonder how it works. Its a wrapper over junit and testng frameworks. It starts these test frameworks and runs test cases. How does it do that?

In my project, I wrote a testng test class. It recognized its a testng test case and ran that automatically.
Can anyone point me to the source code for surefire plugin also.

If I have both Junit and testng test class , what will happen?
12 years ago
Hi

I could not understand the requirement clearly.
Can you explain what is the expected behavior .
what do you mean by
Stop the thread from T1
Wait for 5 seconds
Stop the thread from T2

If you can provide requirements clearly I will give a try.
Whether t1 and t2 should interleave or something
expected output or a dry-run please
Hi

My app depends on some jars of another app.I dont want to pack all the jars in my ear.My app should be independent.If it has to be packaged every time the other app changes we need to rebuild the whole ear.I dont want this to happen.I want them to be isolated.

Can we specify to pick jars from a particular location in jboss classpath?
or can we specify in application.xml , pick all jars under this directory?

Thanks
Praveen SP
12 years ago
Hi all

I have a test.ear in my deploy directory.META-INF/application.xml specifies the classpath if ear is used in jboss.
Can I specify the classpath to pick jars outside of the jboss directory.
Any thoughts on this

Thanks
Praveen SP
12 years ago
Hi

Thanks for the reply
I came across a valid ascii character I believe
13 years ago
Hi all

I remember I came across a character even if present in the comment will not let the program compile.
i mean
void doi()
{
//some character here(inside comment)
}

I am sure there is one character But I dont know what.
If I get to know, I will post in my blogs as the most strange question

any help
13 years ago
I came across second level cache in some forums.
Whether evict method removews the object from the second level cache also.
Any help
Hi all

Whether session.evict always removes the object from the persistent context.
Whether anyone has come across any case in which it fails and the object still remains in the persistance context.

Thanks
praveen SP
Hi all

mvn -Dtest=<classname>test.java test
this will run the junit test case for all the methods in that test java file.
I want to restrict it to only certain methods.
Can we specify run this method in this junit test class.

please help

Praveen SP
13 years ago
thanks for your answer david
13 years ago
Ya I understood the terms.thanks
I came across this code.But why do we create a list with a single object.
Can you say what is the advantage in using collections.singletonlist() ?

Thanks
Praveen SP
13 years ago
HI all

what does the collections.singletonlist(Object o) method do?

What do we mean by the term immutable list and singleton list?
13 years ago