package com.peterjosling.scroball.transforms;

import com.peterjosling.scroball.Track;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

import static com.google.common.truth.Truth.assertThat;

@RunWith(JUnit4.class)
public class TitleExtractorTest {

  private TitleExtractor titleExtractor = new TitleExtractor();

  @Test
  public void transform_doesNotModifyWhenNoSeparator() {
    Track input = Track.builder().track("Some Title").build();

    Track output = titleExtractor.transform(input);

    assertThat(output.track()).isEqualTo("Some Title");
  }
}

@@ -470,16 +470,27 @@
 Title%22).
+artist(%22%22).
 build();

Fix TitleExtractorTest