

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















1
2
GRASP Patterns Sample OCL Problem Using UML to Model Application of XML
Build Tools (e.g., Ant) Continuous Build Process Frameworks (e.g., CruiseControl) Unit Testing Frameworks (e.g., jUnit) Refactoring Browsers (e.g., IntelliJ’s IDEA) Selecting Appropriate Tools
Individual Assignment #4 & Team Assignment # Course Project (Part 2) - Ongoing Readings
3
Individual Assignment # Course Project (Part 2) Readings
4
7
http://opensource.thoughtworks.com/index.html Dashboard: Dashboard is a plugin for IntelliJ IDEA and Eclipse that gives instant feedback to the developer regarding the current status of a continuous integration build on a remote machine. It is currently used to give a stage by stage, visual representation of the state of a cruise control build. Marathon: Marathon is a gui-test tool that allows you to play and record scripts against a java swing ui. It's written in java, and uses python as its scripting language - the emphasis being on an extremely simple, readable syntax that customers/testers/analysts feel comfortable with.
(continued)
8
Ant - is a platform independent build system (somewhat analogous to make). JMeter - a 100% pure Java desktop application designed to load test functional behavior and measure performance. Cactus - Cactus is a simple test framework for unit testing server-side java code.
Unit Tests Generator - part of "Web Test Tools" - provides tools for automatically generating unit tests. Integrate these using Ant to get automatic generation of new tests when a class or method is added. Dbunit - This database testing framework is a JUnit extension which sets up your database in a known state before executing your tests.
(continued)
9
(continued)
XMLUnit - Seems to be mostly about testing for differences. JUnitEE - provides a TestRunner which outputs HTML and a servlet which can be used as an entry point to your test cases. JUNITPP - an extension to the JUNIT framework that allows a test data repository and load/stress test from the command line. Hansel is an extension to JUnit implementing code coverage tests. Grinder is a Java load-testing framework that is freely available under a BSD-style open-source license. JTestCase helps you in separating test data from test code. In another word, JTestCase enables unit tests to be "data-centric".
10
(continued)
JFunc is an extension to the JUnit testing framework to make it easier for use with functional (integration) tests. TagUnit is a framework whereby JSP custom tags can be tested inside the container, and in isolation to the application specific pages on which they will ultimately be used. MaxQ is a free web functional testing tool. It includes an HTTP proxy that records your test script, and a command line utility that can be used to playback tests. StrutsTestCase is an extension of the JUnit TestCase class that allows testing of individual Action objects with or without a running servlet engine. This framework provides both mock servlet objects as well as Cactus support to simulate the environment.
13
Java IDEs
14
(Java) IDEs – Selection Criteria
15
http://jakarta.apache.org/cactus/ http://www.junit.org/index.htm
16
19
(continued)
Auto Color : String Door : Integer Engine : Integer
X MI
M O F
interface Auto { };
Class Auto {public String color; public int Door; public int Engine; }
20
21
UML’s Business Engineering Methodology
Use Case View/Model
Logical and Process View/Models Content, Data, and Process Model (e.g., OIM’s knowledge management, and database/datawarehousing models)
Implementation View Component Model (e.g., OIM’s component and object model)
Deployment View/Model
22
UML and Modeling Methodologies
UML: object modeling XML: content modeling
ORM: data modeling
25
XML Metadata Management
26
XML Support for UML Modeling
Meta Object Facility (MOF)
XML Metadata Interchange (XMI)
27
MDA Development Approach
28
Sample MOF MetaModel
31
Simplified UML XMI DTD
32
XML Information Modeling
Steps
Modeling Techniques
33
Query Gloss aries
Trans lator
glos s ary_reques t
< < c om m unicate> >
< < c om m unic ate> >
glos s ary_reply
reply_s upplier
reques t_s upplier
request_rec ipient
34
(continued) XSD Datatypes <
<
a u th o rNa m e : stri n g^ S i g n e d E n try cr ea ti o n Da te : d a te
<
<
<
e n g l i sh [0 ..1 ] : stri n gE n try fre n ch [0 ..1 ] : stri n g
<
<
<
+g l o ssa ry 0 ..n
0 ..n
1 +e n try (^) 0 ..n
1
0 ..n +d e scri p ti o n0 ..20 ..2 P l a ce Ho l d e r( fro m XH T ML)
+su b -g l o ssa ry 0 ..n
37
01 aspect Lock { 03 Data sharedDataInstance; 04 Lock( Data d ) { 05 sharedDataInstance = d; 06 } 08 introduce Lock Data.lock; 09 10 advise Data() { 11 static after { 12 thisObject.lock = new Lock( thisObject ); 13 } 14 } 17 }
38
(continued)
15 boolean locked = false; 16 17 advise Worker.perform(..), AnotherWorker.perform(..) { 18 before { 19 if ( thisObject.sharedDataInstace.lock.locked ) // enqueue, wait 20 thisObject.sharedDataInstace.lock.locked = true; 21 } 22 after { 23 thisObject.sharedDataInstace.lock.locked = false; 24 } 25 } 26 }
39
Catalog of Patterns (www.martinfowler.com/eaaCatalog) Domain Logic Patterns (e.g., Service Layer) Data Source Architectural Patterns e.g., Data Mapper Object-Relational Behavioral Patterns e.g., Unit of Work Object-Relational Structural Patterns e.g., Inheritance Mappers Object-Relational Metadata Mapping Patterns e.g., Repository Web Presentation Patterns e.g., MVC, Application Controller Distribution Patterns (e.g., Remote Façade, DTO) Offline Concurrency Patterns (e.g., Implicit lock) Session State Patterns (e.g., Server Session State) Base Patterns (e.g., record set, value object)
40
MVC Pattern splits user interface interaction into three different roles