package com.glzhu.mavendemo;

import org.junit.Assert;
import org.junit.Test;

public class HelloWorldTest {

	@Test
	public void testMethod(){
		HelloWorld hw = new HelloWorld();
			int ss= hw.add(1, 1);
			Assert.assertEquals(ss, 2);
	}
	
	
}

package com.glzhu.mavendemo;

import org.junit.Assert;
import org.junit.Test;

public class HelloWorldTest {

	@Test
	public void testMethod(){
		HelloWorld hw = new HelloWorld();
			int ss= hw.add(1, 1);
			Assert.assertEquals(ss, 2);
			
			int ss2= hw.add(1, 2);
			Assert.assertEquals(ss2, 3);
	}
	
	
}

test 1+2=3