Cleanup tests for Codacy
This commit is contained in:
parent
1b76f789a3
commit
315b126b23
@ -5,11 +5,9 @@ import java.util.Properties;
|
|||||||
import org.testng.Assert;
|
import org.testng.Assert;
|
||||||
import org.testng.annotations.Test;
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
import com.google.refine.expr.CellTuple;
|
|
||||||
import com.google.refine.expr.Evaluable;
|
import com.google.refine.expr.Evaluable;
|
||||||
import com.google.refine.expr.HasFields;
|
import com.google.refine.expr.HasFields;
|
||||||
import com.google.refine.model.Cell;
|
import com.google.refine.model.Cell;
|
||||||
import com.google.refine.model.Project;
|
|
||||||
import com.google.refine.model.Row;
|
import com.google.refine.model.Row;
|
||||||
|
|
||||||
public class JythonAttributeTest {
|
public class JythonAttributeTest {
|
||||||
@ -18,7 +16,7 @@ public class JythonAttributeTest {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object getField(String name, Properties bindings) {
|
public Object getField(String name, Properties bindings) {
|
||||||
if (name.equals("sunshine")) {
|
if ("sunshine".equals(name)) {
|
||||||
return "hammock";
|
return "hammock";
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
@ -33,8 +31,6 @@ public class JythonAttributeTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testWrappedObjectsHaveAttributes() {
|
public void testWrappedObjectsHaveAttributes() {
|
||||||
Project project = new Project();
|
|
||||||
|
|
||||||
Row row = new Row(2);
|
Row row = new Row(2);
|
||||||
row.setCell(0, new Cell("sunshine", null));
|
row.setCell(0, new Cell("sunshine", null));
|
||||||
row.setCell(1, new Cell("hammock", null));
|
row.setCell(1, new Cell("hammock", null));
|
||||||
|
Loading…
Reference in New Issue
Block a user