package com.reactnativenavigation.react;

import com.facebook.react.*;
import com.facebook.react.shell.*;
import com.reactnativenavigation.*;

import org.junit.*;
import org.robolectric.*;

import java.util.*;

import static org.assertj.core.api.Java6Assertions.*;
import static org.mockito.Mockito.*;

public class NavigationReactNativeHostTest extends BaseTest {

    @Test
    public void getPackagesDefaults() {
        NavigationReactNativeHost uut = new NavigationReactNativeHost(RuntimeEnvironment.application, false, null);
        assertThat(uut.getPackages()).hasSize(2).extracting("class").containsOnly(MainReactPackage.class, NavigationPackage.class);
    }

    @Test
    public void getPackagesAddsAdditionalPackages() {
        ReactPackage myPackage = mock(ReactPackage.class);
        NavigationReactNativeHost uut = new NavigationReactNativeHost(RuntimeEnvironment.application, false, Collections.singletonList(myPackage));
        assertThat(uut.getPackages()).hasSize(3).containsOnlyOnce(myPackage);
    }

    @Test
    public void getPackages_DoesNotAddDefaultTwice() {
        NavigationReactNativeHost uut = new NavigationReactNativeHost(
                RuntimeEnvironment.application,
                false,
                Arrays.asList(
                        new MainReactPackage(),
                        new MainReactPackage(),
                        new MainReactPackage()));
        assertThat(uut.getPackages()).hasSize(2).extracting("class").containsOnly(MainReactPackage.class, NavigationPackage.class);
    }
}
@@ -1022,529 +1022,6 @@
    %7D
-%0A%0A    @Test%0A    public void getPackages_DoesNotAddDefaultTwice() %7B%0A        NavigationReactNativeHost uut = new NavigationReactNativeHost(%0A                RuntimeEnvironment.application,%0A                false,%0A                Arrays.asList(%0A                        new MainReactPackage(),%0A                        new MainReactPackage(),%0A                        new MainReactPackage()));%0A        assertThat(uut.getPackages()).hasSize(2).extracting(%22class%22).containsOnly(MainReactPackage.class, NavigationPackage.class);%0A    %7D
 %0A%7D

Fix tests