JUNG - Java Universal Network/Graph Framework.
Maven. Strut2. Webservices. Lucene. Jai. Hibernate. Mockito (Mockito API) Java.lang.Object org.mockito.Matchers org.mockito.Mockito Direct Known Subclasses: BDDMockito public class Mockitoextends Matchers Mockito library enables mocks creation, verification and stubbing. This javadoc content is also available on the web page. 1. Following examples mock a List, because everyone knows its interface (methods like add(), get(), clear() will be used). 1.
//Let's import Mockito statically so that the code looks clearer import static org.mockito.Mockito.*; //mock creation List mockedList = mock(List.class); //using mock object mockedList.add("one"); mockedList.clear(); //verification verify(mockedList).add("one"); verify(mockedList).clear(); Once created, mock will remember all interactions. 2. By default, for all methods that return value, mock returns null, an empty collection or appropriate primitive/primitive wrapper value (e.g: 0, false, ... for int/Integer, boolean/Boolean, ...). 3. Argument matchers allow flexible verification or stubbing. 4. SLF4J. JSONObject (Overview (json-lib jdk 5 API)) Java Web Development with Stripes. By Mark Eagle 01/24/2007 Stripes is an open source, action-based Java web framework designed around the principles that web development should be simple and productive for developers. Traditional Java web development focused on versatility through decoupling, which resulted in multiple configuration files, additional objects, and other fragmented resources.
These difficulties subjected many developers to a higher learning curve and reduced productivity. As a result, some Java developers have been lured away by non-Java frameworks such as Ruby on Rails or Django. Java web frameworks, like Stripes, are beginning to learn from the successes of alternative frameworks that streamline development. This article will show how Stripes distinguishes itself from other action based Java web frameworks, such as Struts, while supplying some of the simplicity available in Ruby on Rails. Figure 1. As you can see, this is pretty much what you would expect from an MVC framework.