/*
 * Copyright 2019 The Android Open Source Project
 *
 * 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 io.material.catalog.feature;

import static com.google.common.truth.Truth.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;

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

/**
 * Tests for {@link ViewScheduler}.
 */
@RunWith(RobolectricTestRunner.class)
@Config(sdk = 19)
public class ViewSchedulerTest {

  private ViewScheduler viewScheduler;

  @Before
  public void createScheduler() {
    viewScheduler = new ViewScheduler();
  }

  @Test
  public void runnableRuns_whenSchedulerStarted() {
    Runnable mockRunnable = mock(Runnable.class);
    viewScheduler.start(mockRunnable, 100);

    verify(mockRunnable).run();

    assertThat(viewScheduler.isRunning()).isTrue();
  }

  @Test
  public void runnableTaskIsDone_whenCancelled() {
    viewScheduler.start(() -> {}, 100);
    viewScheduler.cancel();

    assertThat(viewScheduler.isRunning()).isFalse();
  }
}

@@ -707,90 +707,8 @@
 hat;
-%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.verify;
 %0A%0Aim
@@ -1207,128 +1207,41 @@
     
-Runnable mockRunnable = mock(Runnable.class);%0A    viewScheduler.start(mockRunnable, 100);%0A%0A    verify(mockRunnable).run(
+viewScheduler.start(() -%3E %7B%7D, 100
 );%0A%0A

Fix broken build