Model Creation and Testing using Eclipse plug-ins.

Slides:



Advertisements
Similar presentations
Presentation Heading – font Arial
Advertisements

Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
T ESTING WITH J UNIT IN E CLIPSE Farzana Rahman. I NTRODUCTION The class that you will want to test is created first so that Eclipse will be able to find.
XP Tutorial 4 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Personalizing Your Windows Environment Tutorial 4.
COMPREHENSIVE Windows Tutorial 3 Personalizing Your Windows Environment.
Aspect-Oriented Software Development (AOSD) Additional Material Start Writing in AspectJ.
Java Integrated Development Environments: ECLIPSE Part1 Installation.
Views Dwight Deugo Nesa Matic
SOUL INSTALLATION Step-1 For this Please Install the Version 7.0 or SQL Server 2000 or onwards.
RIMS II Online Order and Delivery System Tutorial on Downloading and Viewing Multipliers.
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
Microsoft ® Office PowerPoint ® 2003 Training Create your first Presentation Mr Garel…… presents:
Mozilla Thunderbird Roderick Bautista Cheryl Knott Gyeong Lee Lee Raynes Kelly Santos.
®® Microsoft Windows 7 Windows Tutorial 1 Exploring the Basics of Microsoft Windows 7.
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
®® Microsoft Windows 7 Windows Tutorial 6 Searching for Information and Collaborating with Others.
INF 111 / CSE 121 Discussion Session Week 2 - Fall 2007 Instructor: Michele Rousseau TA: Rosalva Gallardo.
Windows XP 101: Using Windows XP Professional in the Classroom.
Several Ways to Print in Windows 98 by Ralph Godinez.
Using Eclipse. What is Eclipse? The Eclipse Platform is an open source IDE (Integrated Development Environment), created by IBM for developing Java programs.
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
1 IMPORTANT NOTE  IMPORTANT NOTE not  As of this writing the default project you will download, import and use in this class is not enabled for Tomcat.
1 Development Environments AUBG, COS dept Lecture Title: Dev Env: Eclipse (Extract from Syllabus) Reference:
LLRP GUI Client User Guide
Workbench Overview Dwight Deugo Nesa Matic
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Project Deployment IT [211 CAP] How to convert your project to a full application.
Prachi Chitnis.  The CSS feel  SDS – Synoptic Display Studio  ADL Converter  PV table, Probe…
1 NORMA Lab. 5 Duplicating Object Type and Predicate Shapes Finding Displayed Shapes Using the Diagram Spy Using Multiple Windows Using the Context Window.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)
Dr. Gina Green Class Setup.
® Microsoft Access 2010 Tutorial 12 Managing and Securing a Database.
DEVS M&S Tutorial with eclipse IDE Chungman Seo
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Eclipse and JUnit. Eclipse Terms The Workbench Perspective –Collection of editors and views –Exampes: Java Pers., Debugging Persp. Editors (create a file)
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
How to Install Eclipse Click hereClick here to download Eclipse.
Eclipse Project. Installing Visit to download a copy for your home computerhttp:// –Get Release version 3.0 (or.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
1 CSC 216 Lecture 3. 2 Unit Testing  The most basic kind of testing is called unit testing  Why is it called “unit” testing?  When should tests be.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
Exporting. Export Step 1 – In Outlook select Contacts.
Time to apply stuff… Faculty of Mathematics and Physics Charles University in Prague 5 th October 2015 Workshop 1 – Java Wrestling.
1 After completing this lesson, you will be able to: Use a Word template. Create a template. Use a wizard to create a document.
Editing and Debugging Mumps with VistA and the Eclipse IDE Joel L. Ivey, Ph.D. Dept. of Veteran Affairs OI&T, Veterans Health IT Infrastructure & Security.
1 Microsoft Access Security Warnings Note: This presentation was created with "Access 2002". You might have slightly different warnings with other versions.
CF Eclipse Nick Kwiatkowski Michigan State University, Physical Plant 8/8/2006.
Java IDE Dwight Deugo Nesa Matic
JUnit Tatiana Totskaya. Main parts of the presentation  Unit Testing  JUnit – Main Concepts  JUnit Primer  Unit Testing in Eclipse Using JUnit.
Day 1 Session 2. Setup & Installation
Introducing IBM Rational Software Architect
Windows Tutorial 3 Personalizing Your Windows Environment
DRAWING LINES To draw lines click View in the Main Menu Toolbar -> Toolbars and check the Editor option. The Editor toolbar will appear amongst the toobars.
ATS Application Programming: Java Programming
What is a Profile and Why Do I Need One?
Quick Start Guide for Visual Studio 2010
Debugging with Eclipse
Software Setup & Validation
Using Eclipse.
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Print, Collate, and Staple
Java Code Review with CheckStyle
Configuring Classification Management
Debugging with Eclipse
Presentation transcript:

Model Creation and Testing using Eclipse plug-ins

Prerequisite for this tutorial….

Plug-ins that you need…. Eclipse UML2 version (md5) Eclipse EMF version Omondo’s EclipseUML version Studio

For that you need…… Eclipse Version: Build id: I

The general rule: You need to create a folder in your Eclipse dir. and then unzip the downloaded zip file Look for “feature” and “plugin” folder in your created folder after every download of a plug-in. Copy and paste all the folders and files to the corresponding feature and plugin folder of the Eclipse folder. Special note: A safe measure is to copy and paste all the.jar files of the plugins folder (in your created folder) separately into the plugins folder of Eclipse

These folders should be in your eclipse directory……….

The basic jar files required…….

For Omondo UML:

How to check your plug-ins:

UML Modeling with Eclipse UML2

Open Eclipse in ‘Resource’ perspective: 1)Select the Window > Open Perspective > Other… menu item. 2) Select the Resource perspective and press the OK button. 3) Select the File > New > Project... menu item. 4) Select the Project wizard from the General category and press the Next > button. 5) Enter a project name and press the Finish button.

UML with Eclipse: The Starting Point

Creating a model: Select a project (i.e. Getting Started with UML2) in the Navigator view and select the File > New > Other... menu item. 2) Select the UML Model wizard from the Example EMF Model Creation Wizards category and press the Next > button. 3) Enter a file name (i.e. “ExtendedPO2.uml”) and press the Next > button. 4) Select Model for the model object and press the Finish button. 5) Select the Window > Show View > Properties menu item. 6) Select the element in the UML editor. 7) Enter a value (i.e. “epo2”) for the Name property in the Properties view.

Creating a model:

How to generate primitive types: 1) Select a package (i.e. epo2) in the UML editor. 2) Right-click and select the New Child > Packaged Element Primitive Type option from the context menu. 3) Enter a value (i.e. “int”) for the Name property in the Properties view.

How to generate Classes: Select a package (ex. epo2) in the UML editor. Right-click and select the New Child > Packaged Element Class option from the context menu. Enter a value (i.e. “Supplier”) for the Name property in the Properties view

How to generate Classes & Types:

How to generate generalizations: Select a classifier (i.e. USAddress) in the UML editor. Right-click and select the New Child > Generalization option from the context menu. Select a value (i.e. epo2::Address) for the General property in the Properties view.

How to generate generalizations:

How to generate properties: Select a classifier (i.e. Supplier) in the UML editor. Right-click and select the New Child > Property option from the context menu. Enter a value (i.e. "name”) for the Name property in the Properties view. Select a value (i.e. epo2::String) for the Type property in the Properties view. Enter a value (i.e. 0) for the Lower property in the Properties view.

How to generate properties:

How to generate association -I Select a package (i.e. epo2) in the UML editor. Right-click and select the New Child > Packaged Element Association option from the context menu. Enter a value (e.g. “A_supplier_orders”) for the Name property in the Properties view. Select the association (i.e. A_supplier_orders) in the UML editor. Right-click and select the New Child > Property option from the context menu. Select a value (i.e. epo2::Supplier) for the Type property in the Properties view. Select a class (i.e. Supplier) in the UML editor.

How to generate association -II Right-click and select the New Child > Property option from the context menu. Select a value (i.e. Composite) for the Aggregation property in the Properties view. Select a value (i.e. epo2::A_supplier_orders) for the Association property in the Properties view. Enter a value (i.e. "orders") for the Name property in the Properties view. Select a value (i.e. epo2::PurchaseOrder) for the Type property in the Properties view. Enter a value (i.e. 0) for the Lower property in the Properties view. Enter a value (i.e. *) for the Upper property in the Properties view.

How to generate association:

EMF Vs Omondo The Eclipse Modeling Project (EMF is a product of that) focus is to provide a unified set of model-based development technologies. The Eclipse Modeling Project Omondo's focus is to provide UML/MDA model development tools.

Working with EMF models

Creating an EMF project:

Creating ECore model -I

Creating ECore model -II

Creating ECore model -III

Creating ECore model -IV

Creating an EMF Class:

Creating EMF enumerations:

Setting Enumeration types:

Creating EMF attributes:

Setting OCL type:

Setting OCL constraint:

Working with Eclipse JUnit (No plug-in required… )

JUnit Elements: Test Case Class: Named [classname]Test.java, where classname is the name of the class that is being tested. Test Case Method: Named test[methodname], where methodname is the name of the method that is tested. Test Suite: Default name for Eclipse is AllTests.java

Creating test class Select File > New > JUnit Test Case OR Select the arrow of the button in the upper left of the toolbar. Select JUnit Test Case OR Right click on a package in the Package Explorer view in the Java Perspective, and select JUnitTestCase OR Click on the arrow of the icon in the toolbar. Select JUnit Test Case. OR You can create a normal Java class but include junit.framework.TestCase as the super class of the test class you are creating.

Points to be noted…. Check to make sure that you are creating the TestCase in the proper package. Give the test case a name. Use the Browse button to search for a different super class. The default super class junit.framework.TestCase. Check which method stubs you would like to create. You can create a main method, setUp(), tearDown(), or a constructor(), but all of these are optional. A constructor is only run when the test case class is first instantiated, but the setUp() and tearDown() methods are run before and after, respectively, each test case is run.

Running your test case/suite: You can right click on the test case class or test suite class and select Run As > JUnit Test. OR You can select a test case or suite and click the arrow on the icon or select Run from the toolbar, and select Run As > JUnit Test. OR You can select a test case or suite and click the arrow on the icon or select Run from the toolbar, and select Run... From here you will create a new JUnit test configuration, and name it. You can choose to run a single test case, or run all test cases in a project or folder.

Downloads: 1. Eclipse Download: wnloads/drops/S-3.3M5eh / wnloads/drops/S-3.3M5eh / UML Download: (a) (b) 2#uml2http:// 2#uml2 2. EMF Download: emf/emf/downloads/drops/2.3.0/S /emf-sdo-xsd- SDK-2.3.0RC4.zip emf/emf/downloads/drops/2.3.0/S /emf-sdo-xsd- SDK-2.3.0RC4.zip

References: lille1.eu/people/Vanwormhoudt/siteEMFO CL/tutoriel/TutorialEMFOCL1.htm lille1.eu/people/Vanwormhoudt/siteEMFO CL/tutoriel/TutorialEMFOCL1.htm docs/articles/Getting_Started_with_UML2/ article.html docs/articles/Getting_Started_with_UML2/ article.html

Thank you!