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.mockito.Mockito;
|
||||||
import org.robolectric.RuntimeEnvironment;
|
import org.robolectric.RuntimeEnvironment;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
@RunWith(WithTestDefaultsRunner.class)
|
@RunWith(WithTestDefaultsRunner.class)
|
||||||
public class InspectorSonarPluginTest {
|
public class InspectorSonarPluginTest {
|
||||||
|
|
||||||
@@ -103,7 +105,7 @@ public class InspectorSonarPluginTest {
|
|||||||
.put("children", new FlipperArray.Builder().put("test"))
|
.put("children", new FlipperArray.Builder().put("test"))
|
||||||
.put("attributes", new FlipperArray.Builder())
|
.put("attributes", new FlipperArray.Builder())
|
||||||
.put("decoration", (String) null)
|
.put("decoration", (String) null)
|
||||||
.put("extraInfo", new FlipperObject.Builder())
|
.put("extraInfo", new FlipperObject.Builder().put("hasAXNode", true))
|
||||||
.build()));
|
.build()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -351,6 +353,12 @@ public class InspectorSonarPluginTest {
|
|||||||
return node.children.get(index);
|
return node.children.get(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public Object getAXChildAt(TestNode node, int index) throws Exception {
|
||||||
|
return node.children.get(index);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Named<FlipperObject>> getData(TestNode node) {
|
public List<Named<FlipperObject>> getData(TestNode node) {
|
||||||
return Collections.singletonList(new Named<>("data", node.data));
|
return Collections.singletonList(new Named<>("data", node.data));
|
||||||
@@ -413,6 +421,12 @@ public class InspectorSonarPluginTest {
|
|||||||
return root;
|
return root;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public Object getAXChildAt(ApplicationWrapper node, int index) {
|
||||||
|
return root;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setHighlighted(ApplicationWrapper node, boolean selected, boolean isAlignmentMode) {
|
public void setHighlighted(ApplicationWrapper node, boolean selected, boolean isAlignmentMode) {
|
||||||
highlighted = selected;
|
highlighted = selected;
|
||||||
|
|||||||
Reference in New Issue
Block a user