Commit cb7bc202 authored by yanzg's avatar yanzg

身份证识别

parent 2007a13c
package base;
import com.yanzuoguang.util.vo.MapRow;
import org.junit.Assert;
import org.junit.Test;
public class TestMapRow {
@Test
public void testMapRow1() {
MapRow mapRow = new MapRow();
mapRow.put("key1", "value1");
mapRow.put("key2", "value2");
MapRow mapRow2 = new MapRow();
mapRow2.put("key1", "value1");
mapRow2.put("key2", "value2");
Assert.assertEquals(mapRow,mapRow2);
}
@Test
public void testMapRow2() {
MapRow mapRow = new MapRow();
mapRow.put("key1", "value1");
mapRow.put("key2", "value2");
MapRow mapRow2 = new MapRow();
mapRow2.put("key2", "value2");
mapRow2.put("key1", "value1");
Assert.assertEquals(mapRow,mapRow2);
}
@Test
public void testMapRow3() {
MapRow mapRow = new MapRow();
mapRow.put("key1", "value1");
mapRow.put("key2", "value2");
mapRow.put("key3", "value3");
MapRow mapRow2 = new MapRow();
mapRow2.put("key2", "value2");
mapRow2.put("key1", "value1");
Assert.assertNotEquals(mapRow,mapRow2);
}
@Test
public void testMapRow4() {
MapRow mapRow = new MapRow();
mapRow.put("key1", "value1");
mapRow.put("key2", "value2");
MapRow mapRow2 = new MapRow();
mapRow2.put("key2", "value2");
mapRow2.put("key1", "value1");
mapRow2.put("key3", "value3");
Assert.assertNotEquals(mapRow,mapRow2);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment