• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.robolectric.json;
2 
3 import static com.google.common.truth.Truth.assertThat;
4 
5 import androidx.test.ext.junit.runners.AndroidJUnit4;
6 import java.util.Arrays;
7 import org.json.JSONArray;
8 import org.junit.Test;
9 import org.junit.runner.RunWith;
10 
11 @RunWith(AndroidJUnit4.class)
12 public class JSONArrayTest {
13   @Test
testEquality()14   public void testEquality() throws Exception {
15     JSONArray array = new JSONArray(Arrays.asList("a", "b"));
16     assertThat(array).isEqualTo(new JSONArray(array.toString()));
17   }
18 }
19