SENG 301 – Tutorial 1 Introduction to Eclipse, Subclipse, and JUnit

Slides:



Advertisements
Similar presentations
TortoiseSVN By Group 1 Team B. Installing TortoiseSVN.
Advertisements

Litmus Learning Primer tests
Click Here for Download the Installation Files Click Here for Guide How to Extract Installation Files.
SENG 301 – Tutorial 1 Introduction to Eclipse and Subclipse Slides: Theodore D. Hellmann and Jamie Starke.
Version Control System (Sub)Version Control (SVN).
How to access AUXDATA March If you have not received a Username from your DSO-IS, do not go any further. Send a request to your FSO-IS/SO-IS asking.
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.
Get android development environment running. Install – Get and install JDK 5 or 6 (see link in the.
Java Integrated Development Environments: ECLIPSE Part1 Installation.
INF 123: Software Architectures, Distributed Systems, and Interoperability Discussion Session Week 3 - Spring 2008 Instructor: Prof. Richard N. Taylor.
Getting Started with Android Programming Note: if you have already installed android development tools, please check that you have the same version as.
New School Websites Teacher Pages. Visit the SCUSD Website for videos tutorials: For more information.
By Steven Campbell and Erik Boone.  Sharing projects by putting them into a central repository.  Checking out copies of projects from the repository.
Getting started with Eclipse By Alexander Butyaev.
Version Control with Subversion. What is Version Control Good For? Maintaining project/file history - so you don’t have to worry about it Managing collaboration.
November 2014Prepared by the Computer Lab Montgomery County-Norristown Public Library.
Chapter 1a© copyright Janson Industries RAD ▮ Explain Eclipse, RAD, and their relationship ▮ Basic RAD concepts ▮ How to install RAD ▮ How to import.
Android. The Eclipse IDE Installation Requirements: Eclipse Java Windows All must match (32-bit OR 64-bit) If you have a 64-bit OS & 32-bit browser,
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 Install FTP for Curriculum Development Professional Development Training.
Microsoft FrontPage 2003 Illustrated Complete Finalizing a Web Site.
SENG 301 – Tutorial 1 Introduction to Eclipse, Subclipse, and JUnit Slides: Theodore D. Hellmann.
Screenshots of the E-book download For Windows and Flash disks.
Version Control Menggunakan TortoiseSVN
SVN in Eclipse Presented by David Eisler 10/09/2014.
SENG 403 Tutorial 1 1SENG 403 – Winter Agenda Version Control Basics Subversion Basic actions in Subversion Some examples 2SENG 403 – Winter 2012.
Computer Science and Engineering The Ohio State University  Widely used, especially in the opensource community, to track all changes to a project and.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Team-Oriented Development with CVS and Eclipse Presented June 9, 2004 Manchester Java Users Group Meeting By Gregory C. Larkin.
Version Control CSC 517 John Slankas. Version Control Managing files and directories, and the changes made to them over time. - Adapted from “Version.
How To Configure Thunderbird For Your Webspace Account.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
From the home page go to the Podcast Publisher box since you will be the publisher of the podcast. That’s the darker green one on the top left. Click.
Eclipse Project. Installing Visit to download a copy for your home computerhttp:// –Get Release version 3.0 (or.
(1) Installing the Software ICU Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences University of Hawaii Honolulu.
CSE 250 Spring  Can use either Eclipse plugin or web interface  For Eclipse, make sure all the files you want to submit are in the same project.
Loader Tutorial Set Up. Requirements Java 7 Eclipse IvyIDE plugin Git Optional: Ant Maven.
After completing this lesson, you will be able to: Add comments to a presentation. Send a presentation via . Track changes in a presentation. Use.
WinCVS Training è Basic Concepts è Download & Setup è Importing a new module into CVS Repository è Getting new module from CVS è Getting Latest version.
1 Mapping a Drive on a USF IIS Server. 2 Mapping a Drive To map a drive to a network file directory in Windows you must be on a Microsoft local area network,
------TAO, MARKUS Project IT. JavaDoc ‣ JavaDoc is a standard method of commenting source code (interfaces, classes, methods, instances variables). ‣
Software Design– Unit Testing SIMPLE PRIMER ON Junit Junit is a free simple library that is added to Eclipse to all automated unit tests. The first step,
Maryknoll Wireless Network Access Steps for Windows 7 As of Aug 20, 2012.
How to fix Error code 0x80072ee2 in Windows 8.1? Fix%20%20Update%20Error%200x80072EE2%20in%20Windows%20 8.1,%20Windows%2010!%20-%20Fix%20PC%20Errors.htm.
Fix: Windows 10 Error Code 0x in Mail App u/6/b/ /alexwaston14/reimage-system-repair/ /pages/Reimage-Repair-Tool/
PARTNER CHAT TROUBLESHOOTING TIPS FOR USING vistahigherlearning.com/chat.
CWA 3105 Presents At&t Connect for Windows pc This will be a quick set up guide for our new virtual meeting program We are the ELITE to have this trial.
Perform a complete mail merge Lesson 14 By the end of this lesson you will be able to complete the following: Use the Mail Merge Wizard to perform a basic.
Basic Web Design UVICELL Week 4 Templates and site management Week 4 Templates and site management.
Author: Loh Jianxiong Christopher Contributions: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang, Tong Chun Kit, Tania Chattopadhyay.
 Step 1: Enabling the keyboard in window Skip this step if the computer does not enter sleep mode or if the computer.
A step-by-Step Guide For labels or merges
Partner Chat TROUBLESHOOTING TIPS FOR USING
eBook Downloading Tutorial for METU
Version Control with Subversion
SVN intro (review).
How to Fi
bcb
Concurrent Version Control
Getting started in Eclipse
Bomgar Remote support software
Microsoft FrontPage 2003 Illustrated Complete
Marking a Piece of Equipment for Transfer/Scrap/Withdrawal
Setting up Eclipse Locally
Install Ruby If you are running on Mac OS X, Ruby is preinstalled.
Text Messages To Your Office Number
Subversion Basics Guide
Your site should be here
Welcome to Grant Tracker!
Presentation transcript:

SENG 301 – Tutorial 1 Introduction to Eclipse, Subclipse, and JUnit Slides: Theodore D. Hellmann

Acquiring the Software - 1 Eclipse: - download “Eclipse Classic” from eclipse.org - remember it just unzips (no installation)‏ JUnit: - JUnit 3.4 and 4.3 comes with Eclipse - 4.5 is out; you can get it from junit.org

Acquiring the Software - 2 Subclipse: 1) Start Eclipse 2) Under the “Help” menu, click “Software Updates”, then select the “Available Software” tab 3) Click “Add Site…” and type in http://subclipse.tigris.org/update_1.4.x 4) Click the “OK” button, select the checkbox next to Subclipse, and click “Install…”

Using Eclipse - 1 First create a new project: - click on “File”, then “New”, then “Java Project” Next, create a new class: - click “File”, then “New”, then “Class” To run your code: - click on the “Run” menu, then on “Run”

Using Eclipse - 2 Some useful features: - Catches syntax errors while you code - Hover over an error (squiggly red line) for suggestions on how to fix it - Auto-Complete

Using Subclipse - 1 Before you can use Subclipse: - email help@cpsc.ucalgary.ca and ask for an SVN account - the email should look something like “Hi, I need an SVN account for [your username], and the following people will need to be able to access it: [your partner’s usernames]” Standard operating procedure is to CC Dr. Sillito

Using Subclipse - 2 Help’s response will contain: - the link you’ll need to use when initially sharing the project and when accessing it - it should look something like: https://forge.cpsc.ucalgary.ca/svn/courses/s301/ group[your group number here]

Using Subclipse - 3 To share a project: - create a project in Eclipse - right-click the project, hover over “Team” in the context menu, and click “Share Project…” - double-click “SVN”, then enter in the URL that Help sent you

Using Subclipse - 4 To access a shared project: - click on “Window”, hover over “Open Perspective…”, then click on “Other” - select “SVN Repository Exploring” from the list - next, right-click within that perspective, hover over “New”, then select “Repository Location” - enter in the URL, after which you will likely be prompted for your username and password

Using Subclipse - 5 The main commands you will use in Subclipse: Update: will check the repository for changes and add them to your code Commit: takes changes in your code and adds them to the server Merge: resolves conflicts discovered by either of the above operations

Using Subclipse - 6 The main commands you will use (continued): Synchronize: - allows you to select which changes to make to both code bases if there have been concurrent modifications - otherwise Subclipse may insert junk into your code!

Using Subclipse - 7 To take any of these actions: - right-click on your project, hover over “Team”, then select the action you want from the menu If you Update/Commit frequently, you’ll reduce the chance of creating a conflict, and also reduce the time it takes to sort a conflict out!

Testing - Definitions There are two main types of testing that JUnit is good for: Unit Testing - checks whether a subset of your project is working; for example that an individual method is performing as expected Acceptance Testing - checks whether your code as a whole is performing as expected

JUnit Testing - 1 To create a JUnit test class: - go to “File”, then “New”, then “JUnit Test Case” - type the name of the class you want to test into the box next to “Class under test:” - the convention is to name your test something along the lines of “[name]Test”, where [name] is the name of the class you’re testing.

JUnit Testing - 2 Put the tag “@Before” before any method you want run before every test Put the tag “@After” before any method you want run after every test To write a test, just put the tag “@Test” before a method If a test passes when an exception is thrown, use “@Test (expected = [exception name here])”

JUnit Testing - 3 Within a test, use Assert to make sure that your test code is behaving as expected. For example, if your method adds two numbers and returns the result, you might test it with: Assert.assertEquals(3, addThese(5, -2)); or Assert.assertTrue(4 == addThese(2, 2));

JUnit Testing - 4 To run a test class: - right-click on the class in the Package Explorer, hover over “Run An…” and select “JUnit Test”