Move litho plugin tests
Summary: I missed these. :( Open source CI is unhappy about this - for good reasons. Reviewed By: jknoxville Differential Revision: D17500071 fbshipit-source-id: 96106f660dee59985c51e2635321ab4ad00a795a
This commit is contained in:
committed by
Facebook Github Bot
parent
3b94dfe9c4
commit
b041da6d61
@@ -26,6 +26,9 @@ android {
|
||||
implementation deps.lithoWidget
|
||||
implementation deps.supportAppCompat
|
||||
compileOnly deps.jsr305
|
||||
|
||||
testImplementation deps.junit
|
||||
testImplementation deps.robolectric
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2018-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the LICENSE
|
||||
* file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
package com.facebook.flipper.plugins.sections;
|
||||
|
||||
import com.facebook.flipper.testing.FlipperConnectionMock;
|
||||
import com.facebook.flipper.testing.FlipperResponderMock;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.robolectric.RobolectricTestRunner;
|
||||
|
||||
@RunWith(RobolectricTestRunner.class)
|
||||
public class SectionsFlipperPluginTest {
|
||||
@Test
|
||||
public void greetingTest() throws Exception {
|
||||
final SectionsFlipperPlugin plugin = new SectionsFlipperPlugin(true);
|
||||
final FlipperConnectionMock connection = new FlipperConnectionMock();
|
||||
final FlipperResponderMock responder = new FlipperResponderMock();
|
||||
|
||||
plugin.onConnect(connection);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user