mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a5a4facac3
Reviewed By: mdvacca Differential Revision: D7944803 fbshipit-source-id: 6d3b10004d478ad75942af96603c899f44a2e711
21 lines
605 B
Java
21 lines
605 B
Java
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
package com.facebook.react.fabric;
|
|
|
|
import com.facebook.react.uimanager.ReactShadowNodeImpl;
|
|
import org.junit.Test;
|
|
import org.junit.runner.RunWith;
|
|
import org.robolectric.RobolectricTestRunner;
|
|
|
|
/** Tests {@link ReactShadowNode} */
|
|
@RunWith(RobolectricTestRunner.class)
|
|
public class ReactShadowNodeTest {
|
|
|
|
@Test(expected = AssertionError.class)
|
|
public void testClonedInstance() {
|
|
TestReactShadowNode node = new TestReactShadowNode();
|
|
node.mutableCopy();
|
|
}
|
|
|
|
private static class TestReactShadowNode extends ReactShadowNodeImpl {}
|
|
}
|