COMPUTER 2430 Object Oriented Programming and Data Structures I
Friday, September 28 Review Notes! Quiz 2 Friday, September 28 Review Notes!
Nadine Gadjou Lab 206 3:00 – 5:00 PM Monday - Thursday Lab Assistant Nadine Gadjou Lab 206 3:00 – 5:00 PM Monday - Thursday
Pals For CS 1130, CS 1430, and CS 2430 6:00 – 9:00 pm, Monday – Thursday Lab 009, Two rows at the back (front rows for ACM, AITP and GDC)
Lab 3 Make sure your Prog1 is working Make a copy of your Prog1 project UserName_Lab3 Open UserName_Lab3 in NetBeabs
Debugging in NetBeans Setting Break Points Debug Click the left column on the line (Prog1.java) theList.print(); A colored square Debug Right click Prog1.java Debug file
Debugging Windows Variables Breakpoints Output sc theList MAX_SIZE scores numScores Breakpoints Output
Debugging Step Over Step Into Step Out Checking the values Continue Pause Finish Debugging Session Stop
Debugging Commands “step over” and “step into” are the same on a line without a function call Is it possible to have multiple debugging sessions running at the same time? If so, is it a good idea to have multiple debugging sessions running at the same time?
Import Format Setting Instruction NetBeans.txt Menu Tools Options K:\Academic\CSSE\Software\NetBeans_8.1_JDK_8u91 Menu Tools Options Import CS2430Settings.zip
Testing Java Programs TestBed main JUnit tests System test
Testbed Main Inside the same class Testing all methods of a class, including private methods Specify input and verify output Need programming skills
Junit Tests A separate class Testing individual public methods of a class Verify expected result against actual result assertEquals assertNotEquals set precision for float/double values No input and output Need programming skills
Lab 3