You are on page 1of 1

Junit With Eclipse

Question1

public class Demo1

String stringConcat(String str1, String str2){

return str1 + str2;

import static org.junit.Assert.*;

import org.junit.Test;

public class Demo1Test

Demo1 demo1 = new Demo1();

@Test

public void testStringConcat()

assertEquals("dogcat", demo1.stringConcat("dog", "cat"));

You might also like