From 6ea07c9e71dc54d02ce17e67b9d7d8ce6e716d68 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 15 May 2019 09:04:33 -0700 Subject: [PATCH] Move test to right directory Summary: You're not supposed to be here. Reviewed By: SidharthGuglani Differential Revision: D15353936 fbshipit-source-id: f389aeaff71f940d96dfc0422694fb0020dee05c --- .../YogaPerformanceFlipperPluginTest.java | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 android/src/test/java/com/facebook/flipper/plugins/yogaperformance/YogaPerformanceFlipperPluginTest.java diff --git a/android/src/test/java/com/facebook/flipper/plugins/yogaperformance/YogaPerformanceFlipperPluginTest.java b/android/src/test/java/com/facebook/flipper/plugins/yogaperformance/YogaPerformanceFlipperPluginTest.java deleted file mode 100644 index 9a18a7de0..000000000 --- a/android/src/test/java/com/facebook/flipper/plugins/yogaperformance/YogaPerformanceFlipperPluginTest.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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.yogaperformance; - -import static org.hamcrest.CoreMatchers.hasItem; -import static org.hamcrest.MatcherAssert.assertThat; - -import com.facebook.flipper.core.FlipperObject; -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 YogaPerformanceFlipperPluginTest { - - @Test - public void greetingTest() throws Exception { - final YogaPerformanceFlipperPlugin plugin = new YogaPerformanceFlipperPlugin(); - final FlipperConnectionMock connection = new FlipperConnectionMock(); - final FlipperResponderMock responder = new FlipperResponderMock(); - - plugin.onConnect(connection); - connection.receivers.get("greet").onReceive(null, responder); - - assertThat( - responder.successes, hasItem(new FlipperObject.Builder().put("greeting", "Hello").build())); - } -} - -/* @scarf-info: used for tracking scarf generated files, do not remove */ -/* @scarf-generated: flipper-plugin android/test/PluginTest.java 39408df4-f875-4b87-9d8a-21d310226532 */