package com;

import android.util.Log;

import com.octo.android.robospice.persistence.exception.SpiceException;
import com.octo.android.robospice.request.listener.RequestListener;
import com.octo.android.robospice.request.okhttp.OkHttpSpiceRequest;
import com.progscrape.app.data.Story;
import com.progscrape.data.Data;
import com.progscrape.data.FeedParser;
import com.progscrape.data.RequestExecutor;
import com.squareup.okhttp.OkHttpClient;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;

import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

import static org.junit.Assert.fail;

@RunWith(RobolectricTestRunner.class)
@Config(sdk = 21, manifest = Config.NONE)
public class FooTest {
    @Test
    public void testHi() throws InterruptedException {
        final OkHttpClient client = new OkHttpClient();
        RequestExecutor executor = new RequestExecutor() {
            @Override
            public <T> void execute(OkHttpSpiceRequest<T> req, RequestListener<T> listener, boolean force) {
                req.setOkHttpClient(client);
                try {
                    listener.onRequestSuccess(req.loadDataFromNetwork());
                } catch (Exception e) {
                    listener.onRequestFailure(new SpiceException(e));
                }
            }
        };
        Data data = new Data(executor, new FeedParser());
        final CountDownLatch latch = new CountDownLatch(1);

        data.getStoryData(null, new RequestListener<List<Story>>() {
            @Override
            public void onRequestFailure(SpiceException spiceException) {
                Log.e("test", "onRequestFailure", spiceException);
                latch.countDown();
            }

            @Override
            public void onRequestSuccess(List<Story> stories) {
                Log.e("test", "onRequestSuccess: " + stories.toString());
                latch.countDown();
            }
        }, false);

        if (!latch.await(10, TimeUnit.SECONDS))
            fail("Timeout");
    }
}
@@ -727,16 +727,50 @@
 .fail;%0A%0A
+// Tests busted due to java 17%0A%0A//
 @RunWith
@@ -799,16 +799,18 @@
 .class)%0A
+//
 @Config(
@@ -843,16 +843,18 @@
 g.NONE)%0A
+//
 public c
@@ -868,16 +868,18 @@
 oTest %7B%0A
+//
     @Tes
@@ -880,16 +880,18 @@
   @Test%0A
+//
     publ
@@ -937,16 +937,18 @@
 ption %7B%0A
+//
         
@@ -991,24 +991,26 @@
 tpClient();%0A
+//
         Requ
@@ -1052,24 +1052,26 @@
 xecutor() %7B%0A
+//
             
@@ -1072,32 +1072,34 @@
       @Override%0A
+//
             publ
@@ -1187,24 +1187,26 @@
 an force) %7B%0A
+//
             
@@ -1238,16 +1238,18 @@
 lient);%0A
+//
         
@@ -1262,16 +1262,18 @@
   try %7B%0A
+//
         
@@ -1334,24 +1334,26 @@
 Network());%0A
+//
             
@@ -1376,24 +1376,26 @@
 eption e) %7B%0A
+//
             
@@ -1448,24 +1448,26 @@
 eption(e));%0A
+//
             
@@ -1464,32 +1464,34 @@
               %7D%0A
+//
             %7D%0A  
@@ -1480,32 +1480,34 @@
 //            %7D%0A
+//
         %7D;%0A     
@@ -1501,16 +1501,18 @@
      %7D;%0A
+//
         
@@ -1557,24 +1557,26 @@
 dParser());%0A
+//
         fina
@@ -1623,17 +1623,21 @@
 tch(1);%0A
-%0A
+//%0A//
         
@@ -1693,24 +1693,26 @@
 Story%3E%3E() %7B%0A
+//
             
@@ -1713,32 +1713,34 @@
       @Override%0A
+//
             publ
@@ -1793,24 +1793,26 @@
 xception) %7B%0A
+//
             
@@ -1866,16 +1866,18 @@
 ption);%0A
+//
         
@@ -1895,32 +1895,34 @@
 ch.countDown();%0A
+//
             %7D%0A%0A 
@@ -1919,17 +1919,21 @@
       %7D%0A
-%0A
+//%0A//
         
@@ -1946,16 +1946,18 @@
 verride%0A
+//
         
@@ -2012,16 +2012,18 @@
 ries) %7B%0A
+//
         
@@ -2088,16 +2088,18 @@
 ing());%0A
+//
         
@@ -2125,16 +2125,18 @@
 Down();%0A
+//
         
@@ -2141,16 +2141,18 @@
       %7D%0A
+//
         
@@ -2162,17 +2162,21 @@
 false);%0A
-%0A
+//%0A//
         
@@ -2215,16 +2215,18 @@
 CONDS))%0A
+//
         
@@ -2246,15 +2246,19 @@
 eout%22);%0A
+//
     %7D%0A
+//
 %7D

Fix https://stackoverflow.com/questions/67782975/how-to-fix-the-module-java-base-does-not-opens-java-io-to-unnamed-module