Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 544 Bytes

java.md

File metadata and controls

32 lines (22 loc) · 544 Bytes

Java documentation is important

That's a language still. Here's a java codeblock:

public class MyUnit {
    public String concatenate(String one, String two){
      return one + two;
    }
}

And since we have that class, let's test it

import org.junit.Test;
import static org.junit.Assert.*;

public class MyUnitTest {

    @Test
    public void testConcatenate() {
        MyUnit myUnit = new MyUnit();

        String result = myUnit.concatenate("one", "two");

        assertEquals("onetwo", result);

    }
}