sign in · help · news · about · deen

BibSonomy ::  tag ::
order by ( date | folkrank )

The blue social bookmark and publication sharing system.
 

bookmarks

 (6)
<< < 1 > >> 
  • AtUnit minimizes boilerplate code in unit tests and guides test development by enforcing good practices. * mark exactly one field with @Unit to indi...
    AtUnit minimizes boilerplate code in unit tests and guides test development by enforcing good practices. * mark exactly one field with @Unit to indicate the object under test. * mark fields with @Mock or @Stub to obtain mock objects * inject your tests, and your test subjects, using your favorite IoC container Mock Objects Integration AtUnit integrates with JMock or EasyMock to provide mock objects: * obtain a JMock context simply by declaring a field * annotate fields with @Mock to obtain JMock or EasyMock mock objects * annotate fields with @Stub to obtain a JMock or EasyMock stub object ... or you can use your own mock objects plug-in with two easy steps: * implement the MockFramework interface * annotate your tests with @MockFrameworkClass(MyMockFramework.class) Container Integration AtUnit integrates with Guice or Spring to take all of the work out of dependency-injected tests. With Guice: * never see the Injector, never write bootstrapping boilerplate! * @Inject test class fields without even defining a Module * declaratively obtain mock objects with @Inject @Mock * if you need more binding flexibility, simply have your test class implement Module With Spring: * annotate fields with @Bean to get them from the Spring context * fields annotated with @Bean which do not appear in your Spring context are added to it automatically! (This includes @Mock and @Stub fields.) * AtUnit looks for a Spring XML file with the same name as your test, or you can specify the location yourself with @Context("filename") * Most of the time, you don't even need a Spring XML file! You can easily plug in other containers in two steps: * implement the Container interface * annotate your tests with @ContainerClass(MyContainer.class)
    to develop easymock google-code guice java jmock mock qa software springframework testing by gresch on Dec 10, 2008, 11:14 AM
    (0)
  • The mock-object testing pattern has commonly been used to test an individual unit of code without testing its dependencies. While this pattern works well f...
    The mock-object testing pattern has commonly been used to test an individual unit of code without testing its dependencies. While this pattern works well for interaction-based testing, it can be overkill for state-based testing. Learn how to streamline your unit-testing using stubs and the pseudo-objects testing pattern.
    to article develop easymock information java mock software springframework stub testing by gresch on Aug 6, 2008, 5:41 PM
    (0)
  • Assuming you are familiar with Spring and EasyMock, here is a little tutorial on how to stub out randomness for your JUnit tests.
    to article easymock howto information mock qa random software springframework testing by gresch on Aug 6, 2008, 10:42 AM
    (0)
  • To someone who is new to unit testing, the idea of mock objects can be confusing to say the least. I have covered in previous tutorials how to use various ...
    To someone who is new to unit testing, the idea of mock objects can be confusing to say the least. I have covered in previous tutorials how to use various mock object frameworks (EasyMock and jmockit). However in this tutorial, we will focus on the concept of mocking in general. What is a mock object? What is it used for? Why can't I mock object XYZ? Let's look into these questions and maybe clear a bit of the air on the use of mock objects.
    to article develop easymock mock qa software testing-profiling by gresch on Jul 31, 2008, 4:40 PM
    (0)
  • This library allows you to use JavaBeans-style property matching for arguments when using EasyMock. Property matching is based on commons-beanutils as docu...
    This library allows you to use JavaBeans-style property matching for arguments when using EasyMock. Property matching is based on commons-beanutils as documented in Standard JavaBeans.
    to develop easymock java junit qa software testing by gresch on Jun 18, 2008, 3:22 PM
    (0)
  • EasyMock provides Mock Objects for interfaces in JUnit tests by generating them on the fly using Java's proxy mechanism.
    to development easymock java junit mock mockobject objects testing by cschenk and 1 other user on Jun 9, 2007, 5:21 PM
    (0)
<< < 1 > >>bookmarks per page: 5 10 20 50 100  

publications

publications per page: 5 10 20 50 100  
a gripper