Fix failing tests
Summary: Previous diffs fixed all compilation issues, this one makes them actually pass again. Reviewed By: danielbuechele Differential Revision: D10050632 fbshipit-source-id: 7e9f30c51d192b9f7e43abec8a19b2f1eef997df
This commit is contained in:
committed by
Facebook Github Bot
parent
86d32758e3
commit
59f762cac9
@@ -37,6 +37,8 @@ import org.junit.runner.RunWith;
|
||||
import org.mockito.Mockito;
|
||||
import org.robolectric.RuntimeEnvironment;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@RunWith(WithTestDefaultsRunner.class)
|
||||
public class InspectorSonarPluginTest {
|
||||
|
||||
@@ -103,7 +105,7 @@ public class InspectorSonarPluginTest {
|
||||
.put("children", new FlipperArray.Builder().put("test"))
|
||||
.put("attributes", new FlipperArray.Builder())
|
||||
.put("decoration", (String) null)
|
||||
.put("extraInfo", new FlipperObject.Builder())
|
||||
.put("extraInfo", new FlipperObject.Builder().put("hasAXNode", true))
|
||||
.build()));
|
||||
}
|
||||
|
||||
@@ -351,6 +353,12 @@ public class InspectorSonarPluginTest {
|
||||
return node.children.get(index);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Object getAXChildAt(TestNode node, int index) throws Exception {
|
||||
return node.children.get(index);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Named<FlipperObject>> getData(TestNode node) {
|
||||
return Collections.singletonList(new Named<>("data", node.data));
|
||||
@@ -413,6 +421,12 @@ public class InspectorSonarPluginTest {
|
||||
return root;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public Object getAXChildAt(ApplicationWrapper node, int index) {
|
||||
return root;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setHighlighted(ApplicationWrapper node, boolean selected, boolean isAlignmentMode) {
|
||||
highlighted = selected;
|
||||
|
||||
Reference in New Issue
Block a user