A JunitLearning project is created with a com.wipro.task package containing a DailyTasks class with three methods: doStringConcat(), sortValues(), and checkPresence(). A com.wipro.test package is then created containing a TestStringConcat class to test the doStringConcat method using Junit's assertEquals method.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
33%(3)33% found this document useful (3 votes)
1K views1 page
Junit
A JunitLearning project is created with a com.wipro.task package containing a DailyTasks class with three methods: doStringConcat(), sortValues(), and checkPresence(). A com.wipro.test package is then created containing a TestStringConcat class to test the doStringConcat method using Junit's assertEquals method.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
Create a Project named JunitLearning
1. Create a package named com.wipro.task
2. Copy the given class into the com.wipro.task package package com.wipro.task; import java.util.Arrays;
public class DailyTasks {
public String doStringConcat (String s1, String s2) {
return s1+" "+s2; } public int[] sortValues(int arr[]){ Arrays.sort(arr); return arr; } public boolean checkPresence(String str,String a){ return str.contains(a); } } 3. Create a new package called com.wipro.test; 4. Create a class named TestStringConcat to test the functionality of doStringConcat method [hint: use assertEquals method]