Skip to content

Instantly share code, notes, and snippets.

View azakharov3's full-sized avatar

Andrey Zakharov azakharov3

View GitHub Profile
@azakharov3
azakharov3 / PercolationTest.java
Created August 12, 2019 23:43
PercolationTest
import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
import static junit.framework.TestCase.assertFalse;
import static junit.framework.TestCase.assertNotNull;
import static junit.framework.TestCase.assertTrue;
public class PercolationTest {
/* *****************************************************************************
* Name:
* Date:
* Description:
**************************************************************************** */
import org.junit.Test;
import java.util.Arrays;
import java.util.Iterator;
import org.junit.Test;
import java.util.Iterator;
import java.util.NoSuchElementException;
import static junit.framework.TestCase.assertEquals;
import static junit.framework.TestCase.assertFalse;
import static junit.framework.TestCase.assertNotNull;
import static junit.framework.TestCase.assertTrue;
/* *****************************************************************************
* Name:
* Date:
* Description:
**************************************************************************** */
import org.junit.Assert;
import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
public class PointTest {
@Test
public void compareTo_whenAandBareSame_shouldReturn0() {
// Arrange
Point pointA = new Point(0, 0);
Point pointB = new Point(0, 0);
/* *****************************************************************************
* Name:
* Date:
* Description:
**************************************************************************** */
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import static junit.framework.TestCase.assertEquals;
import static junit.framework.TestCase.assertFalse;
import static junit.framework.TestCase.assertTrue;
import static org.junit.Assert.assertNotEquals;
public class BoardTest {
@Test
/* *****************************************************************************
* Name:
* Date:
* Description:
**************************************************************************** */
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;