Kurs:Wirtschaftsinformatik WS08 09 PROGRAMMIERUNG/Videotutorial eclipse

Aus Wikiversity

Kurs:Programmierung

Lesson 1 – Create Your First Java Class[Bearbeiten]

  • Create Java project in Eclipse
  • Create Java package
  • Discuss the Lending Library Application
  • Introduce classes and objects, naming conventions
  • Write a simple Java class (Person)

Lesson 2 – Add Methods To Class[Bearbeiten]

  • Introduce Eclipse Views and Perspectives
  • Introduce Eclipse user interface – drag / drop, context menus, help
  • Add get and set methods to Person class

Lesson 3 – Use Eclipse Scrapbook[Bearbeiten]

  • Introduce Eclipse Scrapbook
  • Introduce Java expressions, statements
  • Discuss Java packages
  • Create Person object in Scrapbook

Lesson 4 – JUnit Testing in Eclipse, Part 1[Bearbeiten]

  • Create test source folder
  • Create PersonTest class
  • Run first JUnit test

Lesson 5 – JUnit Testing Continued[Bearbeiten]

  • Test Person class – part 2
  • Create test methods for constructor, getName, and getMaximumBooks
  • Static methods
  • Lesson 6 – Using Test-First Development in Eclipse
  • Use test-first approach to write the Person toString() method
  • Method overriding
  • Field Hiding

Lesson 6 -- Using Test-First Development in Eclipse[Bearbeiten]

  • Use test-first approach to write the Person toString() method
  • Method overriding
  • Field Hiding

Lesson 7 – Create Book Class[Bearbeiten]

  • Create BookTest before creating Book class
  • Test Book constructor
  • Create get and set methods

Lesson 8 – Add Person to Book Class[Bearbeiten]

  • Create a relationship between the Book class and the Person Class
  • Test getPerson method
  • Create JUnit Test Suite

Lesson 9 – MyLibrary Class and ArrayList[Bearbeiten]

  • How can we hold books, etc. in a collection?
  • MyLibrary object to hold Person & Entry objects
  • Introduce ArrayList in scrapbook
  • Introduce Java Generics
  • Method chaining

Lesson 10 – Start on MyLibrary Class[Bearbeiten]

  • Create MyLibraryTest JUnit test
  • Create testMyLibrary to test MyLibrary constructor
  • Create MyLibrary constructor
  • Introduce instanceof operator
  • Introduce assertTrue method

Lesson 11 – Create first methods in MyLibrary class[Bearbeiten]

  • Create test method for addBook, removeBook methods
  • Create addBook, removeBook methods and test
  • Create addPerson, removePerson methods
  • Introduce Eclipse refactoring – move local variable to field

Lesson 12 – Create checkOut, checkIn Methods[Bearbeiten]

  • Create test for checkOut, checkIn methods
  • Write checkout method
  • Introduce if / then / else syntax
  • Introduce boolean method
  • Write checkIn method

Lesson 13 – Continue checkOut Method[Bearbeiten]

  • Test checkOut, checkIn methods
  • Fix compiler error – misplaced {}
  • Add test for maximum books
  • Create test for getBooksForPerson() method
  • Refactoring – extract method

Lesson 14 – Finish checkOut Method[Bearbeiten]

  • Write getBooksForPerson method
  • Introduce “for each” loop
  • Introduce logical and operator “&&”
  • NullPointerException errors
  • Complete checkOut Method

Lesson 15 – Finish MyLibrary Methods[Bearbeiten]

  • Create test for getAvailableBooks
  • Create getAvailableBooks
  • Create getUnavailableBooks

Lesson 16 – Create main Method and JAR File[Bearbeiten]

  • Introduce main method
  • Write a main method
  • Run MyLibrary as Java application
  • Export to JAR file and run from Windows