Presentation is loading. Please wait.

Presentation is loading. Please wait.

DEVRY CIS 339 iLab 7 Object Oriented Application Coding Check this A+ tutorial guideline at

Similar presentations


Presentation on theme: "DEVRY CIS 339 iLab 7 Object Oriented Application Coding Check this A+ tutorial guideline at"— Presentation transcript:

1 DEVRY CIS 339 iLab 7 Object Oriented Application Coding Check this A+ tutorial guideline at http://www.assignmentcloud.com/cis-339/cis-339-ilab-7-object-oriented-application-coding For more classes visit http://www.assignmentcloud.com Your demonstrations of how to create both method contract and the method specification for the GetCourseByCourseID() method of the CourseList class were very well received by your team members. They then asked you for one final demonstration of how to implement the method specification using an object- oriented (OO) programming language and see the method actually execute. You realize that it is easy to implement the method specification in an OO programming language, but it is hard to test it because the rest of the application is not developed yet. You decided, therefore, to write two pieces of code. Code that implements the GetCourseByCourseID() method Code that implements a unit test for that method alone (outside of any other application code) This way you can demonstrate the method implementation and also verify its correct behavior. You are under a deadline constraint for this deliverable, so you asked some of your peer architects for help. They each are well versed in different OO languages like VB.NET, C#, and Java and they all have done unit testing before so they are familiar of how to construct one.

2 Y OUR PEER ARCHITECTS PROVIDED YOU WITH PARTIALLY - COMPLETED SHELLS FOR YOUR DEMONSTRATION. E ACH SHELL CONTAINS : COMPLETE CODE FOR THE C OURSE CLASS ; PARTIALLY COMPLETED CODE FOR C OURSE L IST CLASS ; AND COMPLETE CODE FOR THE C OURSE L IST T EST CLASS THAT UNIT TESTS THE C OURSE L IST.G ET C OURSE B Y C OURSE ID() METHOD. Y OUR TASK IS NOW EASY. J UST SELECT ONE OF THESE SHELLS AND COMPLETE THE CODE FOR THE PARTIALLY COMPLETED C OURSE L IST BY CODING IT G ET C OURSE B Y C OURSE ID() METHOD. W HEN YOU COMPILE AND RUN THE SHELL, IT WILL AUTOMATICALLY TEST YOUR G ET C OURSE B Y C OURSE ID() CODE TO ENSURE ITS CORRECT BEHAVIOR. D ELIVERABLES O NE W ORD FILE THAT CONTAINS THE FOLLOWING. A COPY OF THE CODE YOU WROTE FOR THE G ET C OURSE B Y C OURSE ID METHOD () OF THE C OURSE L IST CLASS IN YOUR FAVORITE OO PROGRAMMING LANGUAGE A SCREEN SHOT OF THE OUTPUT OF RUNNING THE PROVIDED UNIT TEST IN THE SHELL ( THE C OURSE L IST T EST CLASS ) SHOWING THAT YOUR CODE WORKS AS EXPECTED. N OTE THAT THESE UNIT TESTS ONLY PRINT OUT MESSAGES OF TESTING PROBLEMS. I F YOUR CODE IS CORRECT, THE UNIT TESTS WILL SUCCEED SILENTLY WITHOUT ANY SUCCESS MESSAGES. A N EXPLANATION OF YOUR WORK AND THE DECISIONS YOU MADE TO ARRIVE AT YOUR PROPOSED CODE A ZIP FILE OF THE COMPLETED SHELL AFTER YOU ADDED YOUR CODE SO THAT THE SHELL COULD BE EXECUTED ON A DIFFERENT MACHINE I L A B S T E P S STEP 1: R EVIEW THE M ETHOD C ONTRACT, M ETHOD S PECIFICATION FOR THE G ET CDB Y CDID() M ETHOD, AND C ODING & U NIT T ESTING G ET CDB Y CDID() M ETHOD USING J AVA ( NOT G RADED ) D OWNLOAD THE M ETHOD C ONTRACT FOR G ET CDB Y CDID() M ETHOD AND REVIEW IT PRIOR TO REVIEWING THIS WEEK ’ S VIDEO TUTORIAL. D OWNLOAD THE M ETHOD S PECIFICATION FOR THE G ET CDB Y CDID() M ETHOD AND REVIEW IT PRIOR TO REVIEWING THIS WEEK ’ S VIDEO TUTORIAL STEP 2: C ODE & U NIT T EST THE G ET C OURSE B Y C OURSE ID() METHOD OF THE C OURSE L IST CLASS D ECIDE ON YOUR OO PROGRAMMING LANGUAGE THAT YOU WILL USE FOR THIS LAB AND THEN DOWNLOAD THE CORRESPONDING SHELL FROM THE FOLLOWING.

3 V ISUAL B ASIC S HELL C# S HELL J AVA S HELL B OTH THE V ISUAL B ASIC AND C# SHELLS ARE V ISUAL S TUDIO PROJECTS WHILE THE J AVA SHELL INCLUDE ONLY THE *. JAVA SOURCE FILES THAT COULD BE LOADED INTO ANY J AVA IDE. C ODE AND UNIT TEST THE C OURSE L IST.G ET C OURSE B Y C OURSE ID() METHOD IN YOUR FAVORITE PROGRAMMING LANGUAGE. Y OU ONLY NEED TO ADD CODE FOR THE G ET C OURSE B Y C OURSE ID() METHOD AND THEN RUN THE APPLICATION ( THE UNIT TEST WILL AUTOMATICALLY TEST YOUR CODE ), THEN PRINT OUT PROBLEM MESSAGES, IF ANY E XPLAIN YOUR WORK AND THE DECISIONS YOU MADE TO ARRIVE AT YOUR PROPOSED SOLUTION. STEP 3: S UBMIT YOUR ASSIGNMENT


Download ppt "DEVRY CIS 339 iLab 7 Object Oriented Application Coding Check this A+ tutorial guideline at"

Similar presentations


Ads by Google