[Solved] Discussion 2 CC

Written by

in

✓ Verified Academic Solution Available

Executive Solution Overview

**files (1)** – ## Discussion2CC.docx **## Discussion2CC.docx** **Discussion** **If you wish to use Python and unit test there is one extra step, and that is to convert a method from Simple2.java to Python.** Pick a Java method from Simple2.java and write a single JUnit test for it. Unit test should…

Instant Solution Download

$6.99

Immediate access to the full model answer, formatted citations, and rubric breakdown.

Need a Fresh Custom Paper?

Have this question answered from scratch according to your specific instructions and deadline.

Order on TutorsGallery →

Assignment Prompt & Instructions

**files (1)**

– ## Discussion2CC.docx

**## Discussion2CC.docx**

**Discussion**

**If you wish to use Python and unit test there is one extra step, and that is to convert a method from Simple2.java to Python.**

Pick a Java method from Simple2.java and write a single JUnit test for it. Unit test should only test
**one** functionality such as specific path in that method or parameter or value in that method. Do not bundle tests together in one test case. Select a method or a test different from your classmates.

This week's readings and examples go over unit test in general and JUnit in particular. A good way to start with JUnit is the following tutorial with examples of JUnit tests: http://java.dzone.com/articles/junit-tutorial-beginners.

There are examples of JUnit test in this week's power point charts as well as source code with corresponding JUnit in week 12-13 folder under My Course Content (ListNode.java and TestListNode.java; Simple.javaand TestSimple.java).

A good way to start learning JUnit is the following tutorial with instructions on setting up Eclipse and examples of JUnit tests:
[http://java.dzone.com/articles/junit-tutorial-beginnersLinks to an external site.](http://java.dzone.com/articles/junit-tutorial-beginners)

**## Discussion2CC.docx**

**Discussion**

**If you wish to use Python and unit test there is one extra step, and that is to convert a method from Simple2.java to Python.**

Pick a Java method from Simple2.java and write a single JUnit test for it. Unit test should only test
**one** functionality such as specific path in that method or parameter or value in that method. Do not bundle tests together in one test case. Select a method or a test different from your classmates.

This week's readings and examples go over unit test in general and JUnit in particular. A good way to start with JUnit is the following tutorial with examples of JUnit tests: http://java.dzone.com/articles/junit-tutorial-beginners.

There are examples of JUnit test in this week's power point charts as well as source code with corresponding JUnit in week 12-13 folder under My Course Content (ListNode.java and TestListNode.java; Simple.javaand TestSimple.java).

A good way to start learning JUnit is the following tutorial with instructions on setting up Eclipse and examples of JUnit tests:
[http://java.dzone.com/articles/junit-tutorial-beginnersLinks to an external site.](http://java.dzone.com/articles/junit-tutorial-beginners)

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *