1 package org.robolectric.shadows; 2 3 import static android.os.Build.VERSION_CODES.O; 4 import static com.google.common.truth.Truth.assertThat; 5 6 import android.net.wifi.aware.PeerHandle; 7 import androidx.test.ext.junit.runners.AndroidJUnit4; 8 import org.junit.Test; 9 import org.junit.runner.RunWith; 10 import org.robolectric.annotation.Config; 11 12 /** Tests for {@link ShadowPeerHandle}. */ 13 @RunWith(AndroidJUnit4.class) 14 @Config(minSdk = O) 15 public class ShadowPeerHandleTest { 16 17 @Test canCreatePeerHandleViaNewInstance()18 public void canCreatePeerHandleViaNewInstance() throws Exception { 19 PeerHandle peerHandle = ShadowPeerHandle.newInstance(); 20 assertThat(peerHandle).isNotNull(); 21 } 22 } 23