Kurs:Wirtschaftsinformatik WS08 09 PROGRAMMIERUNG/Videotutorial eclipse
- 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)
- Introduce Eclipse Views and Perspectives
- Introduce Eclipse user interface – drag / drop, context menus, help
- Add get and set methods to Person class
- Introduce Eclipse Scrapbook
- Introduce Java expressions, statements
- Discuss Java packages
- Create Person object in Scrapbook
- Create test source folder
- Create PersonTest class
- Run first JUnit test
- 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
- Use test-first approach to write the Person toString() method
- Method overriding
- Field Hiding
- Create BookTest before creating Book class
- Test Book constructor
- Create get and set methods
- 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
- 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
- Test checkOut, checkIn methods
- Fix compiler error – misplaced {}
- Add test for maximum books
- Create test for getBooksForPerson() method
- Refactoring – extract method
- Write getBooksForPerson method
- Introduce “for each” loop
- Introduce logical and operator “&&”
- NullPointerException errors
- Complete checkOut Method
- 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