// Path: future/src/main/java/com/spotify/hamcrest/future/FutureMatchers.java
// public static <T> Matcher<Future<? extends T>> futureCompletedWithValueThat(
//     final Matcher<T> matcher) {
//   return new SuccessfullyCompletedFuture<>(matcher);
// }


import java.util.concurrent.Future;
import org.hamcrest.Matcher;
import org.hamcrest.StringDescription;
import org.junit.Test;
import static com.google.common.util.concurrent.Futures.immediateFuture;
import static com.spotify.hamcrest.future.FutureMatchers.futureCompletedWithValueThat;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.startsWith;
import static org.junit.Assert.assertThat;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.SettableFuture;
import java.io.IOException;
/*-
 * -\-\-
 * hamcrest-future
 * --
 * Copyright (C) 2016 Spotify AB
 * --
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * -/-/-
 */

package com.spotify.hamcrest.future;



public class SuccessfullyCompletedFutureTest {

  private static final Matcher<Future<? extends Integer>> SUT =
      futureCompletedWithValueThat(is(1));

  @Test
  public void testDescriptionFormatting() throws Exception {
    final StringDescription description = new StringDescription();
    SUT.describeTo(description);

// Path: future/src/main/java/com/spotify/hamcrest/future/FutureMatchers.java
// public static <T> Matcher<Future<? extends T>> futureCompletedWithValueThat(
//     final Matcher<T> matcher) {
//   return new SuccessfullyCompletedFuture<>(matcher);
// }


// Path: future/src/test/java/com/spotify/hamcrest/future/SuccessfullyCompletedFutureTest.java
import java.util.concurrent.Future;
import org.hamcrest.Matcher;
import org.hamcrest.StringDescription;
import org.junit.Test;
import static com.google.common.util.concurrent.Futures.immediateFuture;
import static com.spotify.hamcrest.future.FutureMatchers.futureCompletedWithValueThat;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.startsWith;
import static org.junit.Assert.assertThat;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.SettableFuture;
import java.io.IOException;

/*-
 * -\-\-
 * hamcrest-future
 * --
 * Copyright (C) 2016 Spotify AB
 * --
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * -/-/-
 */

package com.spotify.hamcrest.future;



public class SuccessfullyCompletedFutureTest {

  private static final Matcher<Future<? extends Integer>> SUT =
      futureCompletedWithValueThat(is(1));

  @Test
  public void testDescriptionFormatting() throws Exception {
    final StringDescription description = new StringDescription();
    SUT.describeTo(description);

    assertThat(description.toString(),