net.sourceforge.groboutils.mbtf.v1.ant

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Natural Language Processing
51.Net
52.Parser
53.PDF
54.Portal
55.Profiler
56.Project Management
57.Report
58.RSS RDF
59.Rule Engine
60.Science
61.Scripting
62.Search Engine
63.Security
64.Sevlet Container
65.Source Control
66.Swing Library
67.Template Engine
68.Test Coverage
69.Testing
70.UML
71.Web Crawler
72.Web Framework
73.Web Mail
74.Web Server
75.Web Services
76.Web Services apache cxf 2.2.6
77.Web Services AXIS2
78.Wiki Engine
79.Workflow Engines
80.XML
81.XML UI
Java Source Code / Java Documentation  » Test Coverage » GroboUtils » net.sourceforge.groboutils.mbtf.v1.ant 
net.sourceforge.groboutils.mbtf.v1.ant
net.sourceforge.groboutils.mbtf.v1.ant Ant tasks and data-types for creating and executing state machines from Ant. It provides Ant type versions for each of the main MBTF types: states, transitions, validators, and a state iterator.

The primary owning task is <mbtf.stateiterator>, which contains all the states, and defines the System that will be tested. It can contain references to the states, so that the states can be defined outside the iterator.

The key part is that your ISystem instance must be registered as a Reference in the ant Project.

What the Tester Needs To Write

The Java class for the system, the validators, transitions, and so on.

What's Left To Do

There should be a validator and transition that contains an ant task. Note that the "refid" doesn't work right on tasks for our purposes: if a task has an id, then the task must have executed. So, we need to add task containers for these types.

Java Source File NameTypeComment
AbstractStateMachineType.javaClass An ant datatype encapsulating the IState instance.
IUsesProperties.javaInterface Used by classes created in ValidateJavaType, which can have external properties set.
ReferenceType.javaClass Use the "refid" attribute to set the reference task/target. Set the "sysid" to set the ID to register the "system" variable in the project.
StateIteratorTask.javaClass An ant datatype encapsulating the IState instance.
StateType.javaClass An ant datatype encapsulating the IState instance.
TransitionType.javaClass An ant datatype encapsulating the IState instance.
TransitionTypeUTest.javaClass Tests the TransitionType class.
ValidateJavaType.javaClass A specific IValidate instance, which is Ant compatible, that instantiates a set of Classes using the default constructor, and iterates through them as though they each were IValidate instances.
ValidateTaskType.javaClass A specific IValidate instance, which is Ant compatible, that executes an ant Task/Target (via Reference), and registers an error if the "build" fails.
ww__w_.__ja_v_a2s.__c__o___m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.