instrumentation
Start a second activity inside a TestCase (which is not the activity under test)
How can I start a second (mock) activity in a ActivityInstrumentationTestCase2 or InstrumentationTestCase?[详细]
2023-03-26 17:09 分类:问答Hibernate instrumentation leads to verification errors?
I\'m trying to apply lazy-loading of basic fields (String with huge xml) with Hibernate 3.5.x on MySQL. It seems this does only work for Postgresql. At least not for MySQL.[详细]
2023-03-24 23:11 分类:问答Java Attach API: How to set agent properties?
The Java Attach API for JDK6 provides a method getAgentProperties() on VirtualMachine: public abstract Properties getAgentProperties()[详细]
2023-03-24 09:57 分类:问答How to create a jvmti agent to see all the loaded classes, objects and their field details
I want to write a java agent to instrument some applications. I am interested in getting the details of the objects, (i.e. their fields) instantiated by the applications. I would also like to catch an[详细]
2023-03-22 20:14 分类:问答How do I catch the read and writes in a java program?
I am trying to create a tool that can capture all the read and writes ma开发者_JS百科de by a java program. Also, I would like to know what fields of what object is access/modified.[详细]
2023-03-22 16:28 分类:问答Is it possible to find out if an Android application runs as part of an instrumentation test
Is there a runtime check for an application to find out if it runs as part of an instrumentation test?[详细]
2023-03-22 12:47 分类:问答Implementing a selective ClassLoader
I want to instrument the bytecode of some classes on the classpath at loading time. Since these are 3rd party libraries, I know exactly when they are loaded. The problem is that I need to do the instr[详细]
2023-03-21 04:14 分类:问答How to test a ClassFileTransformer / javaagent?
I implemented a ClassFileTransformer for a javaagent using ASM. Because it has some bugs, I want to write a JUnit test case for it. How do I do this?[详细]
2023-03-18 17:24 分类:问答Profiling vs Instrumentation - Java
Basic question: JVM provides JVMTI which native API for profiling and debugging JVM. JVM instrumentation also does the same (is that correct?). If yes, w开发者_开发百科hat is difference between the bo[详细]
2023-03-12 22:03 分类:问答How can I tell when my instrumented application is in front?
My instrumentation is launching an activity to instrument it, but I can\'t seem to find an elegant way开发者_运维问答 to tell when it\'s safe to start sending it my MotionEvent\'s. At the moment, I\'m[详细]
2023-03-12 05:42 分类:问答