One of the core features of GWT is testability, which means we can easily test our applications using a set of tried-and-true testing tools. Testability for GWT applications breaks down into the three following types of testing components:
* Standard JUnit TestCases
* GWTTestCases (subclasses of the JUnit TestCase)
[…]
Archive for the ‘Java’ Category
JUnit Automated Testing links
Java Mocks
http://easymock.org/
EasyMock provides Mock Objects for interfaces in JUnit tests by generating them on the fly using Java’s proxy mechanism. Due to EasyMock’s unique style of recording expectations, most refactorings will not affect the Mock Objects. So EasyMock is a perfect fit for Test-Driven Development.
EasyMock is open source software available under the terms of the MIT […]
List of object-relational mapping software
http://en.wikipedia.org/wiki/List_of_object-relational_mapping_software
List of object-relational mapping software
From Wikipedia, the free encyclopedia
Jump to: navigation, search
This is a list of well-known object-relational mapping software. This list is neither up-to-date nor all-inclusive.
Contents
[hide]
* 1 C++
* 2 Delphi
* 3 Groovy
* 4 Java
* […]
Enterprise JavaBeans
spi
javax.ejb, javax.ejb.
Description
In a sense, Enterprise JavaBeans are the heart and soul of the J2EE architecture. They represent the core business
model, defined in terms of a collaborating set of components. EJBs are used to […]
Servlets and JSPs
javax.servlet, javax.servlet.http, javax.servlet.jsp, javax. servlet.jsp.taglib
Overview
The servlet API provides one of the two Web component technologies for J2EE. The general model for the
servlet API is quite straightforward, based on two packages which hold all of the core functionality:
[…]
Java 2, Enterprise Edition (J2EE)
The advent of J2EE marked an important evolutionary shift in Java, a shift from treating the language as a series
of APIs to representing it as a development framework. Conceptually, that’s exactly what J2EE is—an
architectural framework used to create enterprise applications.
Since the release of JDK 1.1, distributed programming technologies have been a special strength for Java. […]
Jini and J2EE Architectures
Core packages: net.jini.core.discovery, net.jini.core.entry, net.jini.core.event,
net.jini.core.lease, net.jini.core.lookup, net.jini.core.transaction,
net.jini.core.transaction.server
Utilities and helper packages: net.jini.admin, net.jini.discovery, net.jini.entry, net.jini.event,
net.jini.lease, net.jini.lookup, net.jini.lookup.entry, net.jini.space, com.sun.jini.admin,
com.sun.jini.discovery, com.sun.jini.fiddler, com.sun.jini.lease, com.sun.jini.lease.landlord,
com.sun.jini.lookup, com.sun.jini.lookup.entry, com.sun.jini.mahout,
com.sun.jini.mahout.binder, com.sun.jini.mercury, com.sun.jini.norm, com.sun.jini.outrigger,
com.sun.jini.reggie, com.sun.jini.start (And you thought the Swing list was long.)
Description
Although many applications claim to use a service-based architecture, Jini truly promotes a service-based
architecture. This is done by creating clear and […]
CORBA Java
Packages
JavaIDL: org.omg.CORBA, org.omg.CORBA_2_3, org.omg.CORBA_2_3. portable,
org.omg.CORBA.DynAnyPackage, org.omg.CORBAORBPackage, org.omg.CORBA.portable,
org.omg.CORBATypeCodePackage
CosNaming: org.omg.CosNaming, org.omg.CosNaming. NamingContextPackage, org.omg.SendingContext
RMI-IIOP: javax.rmi.CORBA, org.omg.stub.java.rmi
J2SE (JDK 1.2)
Use:
The Common Object Request Broker Architecture, or CORBA, is a distributed object communication
architecture. In simplest terms, it’s a way for an application to request services from another application by calling
remote methods.
CORBA pretty much provides the ultimate […]
RMI Java
Packages
java.rmi, java.rmi.dgc, java.rmi.registry, java.rmi.server, java.rmi.activation
Overview
RMI enables you to communicate by making remote method calls. Basically, it allows an application to run
methods on objects that are not in the same address space. This enables Java to use the same approach for
distributed communication as it does for local communications—the Java client can make a series of simple
method […]
Reflection Java
java.lang.reflect
The reflection API allows you to discover information about classes and objects at runtime. This capability is
called introspection, and is useful when you want to dynamically include new classes in your programs while they
are running. Using reflection, you can load a class dynamically using only its name.
Although most of the API is in java.lang.reflect, you […]
Input-Output (I/O) Java
java.io
Description
The main goal of the Java I/O API is to allow developers to use streams. Streams provide basic input-output
capabilities in Java. If you want to write to a file, use a stream; if you want to read from standard input, use a
stream. If you want to write across a network—well, you get the idea.
The java.io […]
Collections Framework Java
java.util
Description
The Collections Framework allows developers to use features, such as dynamic resizing without writing all the
code themselves. The Collections API has changed since collections were first introduced in Java. The
Collections Framework aims to provide a more sophisticated way for programmers to deal with collections of
objects.
It’s important to recognize that there’s really only one way to […]
AWT and Swing – The Graphical User Interface APIs
Primary AWT packages are java.awt and java.awt.event Other packages include java.awt.color,
java.awt.datatransfer, java.awt.dnd, java.awt.font, java.awt.geom, java.awt.im,
java.awt.im.spi, java.awt.image, java.awt.image.renderable, java.awt.print
Primary Swing package is javax.swing
Other packages include javax.swing.border, javax.swing.colorchooser, javax.swing.event,
javax.swing.filechooser, javax.swing.plaf, javax.swing.plaf.basic, javax.swing.plaf.metal,
javax.swing.plaf.multi, javax.swing.table, javax.swing.text, javax.swing.text.html,
javax.swing.text.html.parser, javax.swing.text.rtf, javax.swing.tree, javax.swing.undo.
Common Features
Central to both AWT and Swing are the concepts of the component, container, and layout manager. A component
is a […]
JavaBeans
java.beans, java.beans.beancontext
Overview
JavaBeansTM provides a standardized model for the Java programming language that enables classes to be
developed as components. Components have a standard way of representing data and behavior, so they’re more
easily shared between developers. A component model such as JavaBeans potentially enables a developer to reuse
another developer’s code even if they work in different companies […]
Java Core APIs
java.awt.event, javax.swing.event, java.util
Overview
Event handling allows two or more objects to […]
Iterator Map GWT HashMap
import java.util.HashMap;
import java.util.Map;
import java.util.Iterator;
private Map ors = new HashMap();
for(Iterator i=broadcasts.entrySet().iterator(); i.hasNext();){
Map.Entry entry = (Map.Entry) i.next();
AVChatThumbnail thumbnail = (AVChatThumbnail) entry.getValue();
thumbnail.stop();
}
of
Iterator iterator = audiostream_requests.keySet().iterator();
while( iterator. hasNext() ){
String streamName […]
GWT Java Random
import com.google.gwt.user.client.Random;
Random.nextInt(_ors.size())
Model-View-Controller (MVC) Structure Java
Previous - Presentation-Model
Here the same calculator is organized according the the Model-View-Controller (MVC)pattern. The idea is to separate the user interface (the Presentation in the previous example) into a View (creates the display, calling the Model as necessary to get information), and Controller (responds to user requests, interacting with both the View and Controller as […]
Protected: Applied JavaTM Patterns
There is no excerpt because this is a protected post.
Protected: JavaTM Design Patterns: A Tutorial
There is no excerpt because this is a protected post.
