This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.fasterxml.jackson.annotation.JsonProperty; | |
import okhttp3.OkHttpClient; | |
import org.junit.jupiter.api.Test; | |
import retrofit2.Call; | |
import retrofit2.Retrofit; | |
import retrofit2.converter.jackson.JacksonConverterFactory; | |
import retrofit2.http.Body; | |
import retrofit2.http.POST; | |
import java.io.IOException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.common.collect.Iterators; | |
import org.junit.Test; | |
import java.util.Comparator; | |
import java.util.List; | |
public class TestMergeIterators { | |
public static class Datum { | |
private final String letter; | |
private final int number; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.fasterxml.jackson.core.JsonProcessingException; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.testing.model.Dataset; | |
import com.testing.model.OneOfinlineResponse200; | |
import org.junit.jupiter.api.Assertions; | |
import org.junit.jupiter.api.Test; | |
public class TestDataset { | |
@Test | |
public void testDataset() throws JsonProcessingException { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.common.collect.Iterators; | |
import com.google.common.collect.PeekingIterator; | |
import java.util.*; | |
import static java.util.stream.Collectors.toList; | |
public final class StrictMergeIterator { | |
private StrictMergeIterator(){} |