Skip to content

Instantly share code, notes, and snippets.

View Rahal-Kanishka's full-sized avatar
💭
Coding is nothing but Desiging

Rahal Danthanarayana Rahal-Kanishka

💭
Coding is nothing but Desiging
View GitHub Profile
@Christopher-Barham-AKQA
Christopher-Barham-AKQA / assertConcurrent.md
Created August 28, 2012 09:45
assertConcurrent - junit assert method
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import 'dart:async';
import 'dart:convert';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
Future<List<Result>> fetchResults(http.Client client) async {
final response = await client.get('https://api.myjson.com/bins/j5xau');