Added a license and removed the default file template boilerplate.

This commit is contained in:
Iiro Krankka
2017-01-09 12:06:42 +02:00
parent b79e1230a9
commit f558906eb0
13 changed files with 7 additions and 46 deletions

View File

@@ -2,9 +2,6 @@ package com.codemate.booklibrary.data;
import java.util.Date;
/**
* Created by ironman on 01/09/16.
*/
public class Book {
private final String title;
private final String author;

View File

@@ -4,9 +4,6 @@ import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
/**
* Created by ironman on 01/09/16.
*/
public class Library {
private List<Book> inventory = new ArrayList<>();

View File

@@ -5,9 +5,6 @@ import java.util.Calendar;
import java.util.Date;
import java.util.List;
/**
* Created by ironman on 02/09/16.
*/
public class RandomBookGenerator {
private static final String[] SUBJECTS = {
"Chicken", "Pig", "Hippo", "Dinosaur", "Giraffe", "Orangutan",

View File

@@ -2,9 +2,6 @@ package com.codemate.booklibrary.data;
import java.util.Random;
/**
* Created by ironman on 02/09/16.
*/
public class RandomUtils {
private RandomUtils() {}

View File

@@ -14,9 +14,6 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
/**
* Created by ironman on 02/09/16.
*/
public class BookAdapter extends RecyclerView.Adapter<BookAdapter.ViewHolder> {
private final SimpleDateFormat dateFormat;
private List<Book> items = new ArrayList<>();

View File

@@ -8,9 +8,6 @@ import com.codemate.booklibrary.data.RandomBookGenerator;
import java.util.List;
/**
* Created by ironman on 02/09/16.
*/
public class MainPresenter {
private final MainView mainView;
private final Library library;

View File

@@ -4,9 +4,6 @@ import com.codemate.booklibrary.data.Book;
import java.util.List;
/**
* Created by ironman on 02/09/16.
*/
public interface MainView {
void showBooks(List<Book> books);
}

View File

@@ -7,9 +7,6 @@ import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
/**
* Created by ironman on 01/09/16.
*/
@RunWith(Cucumber.class)
@CucumberOptions(features = "src/test/resources")
public class CucumberTests extends TestCase {

View File

@@ -5,9 +5,6 @@ import org.junit.Test;
import java.util.List;
/**
* Created by ironman on 02/09/16.
*/
public class LibraryTest {
@Test
public void addMultipleBooks_PersistsThemInLibrary() {

View File

@@ -8,9 +8,6 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
/**
* Created by ironman on 02/09/16.
*/
public class RandomBookGeneratorTest {
@Test
public void generatingRandomBooks_ReturnsNonEmptyBookList() {

View File

@@ -25,9 +25,6 @@ import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
/**
* Created by ironman on 01/09/16.
*/
public class BookSearchSteps {
private Library library = new Library();
private List<Book> results = new ArrayList<>();
@@ -75,7 +72,7 @@ public class BookSearchSteps {
@And("^Book (\\d+) should have the title \"([^\"]*)\"$")
public void verifyBookAtPosition(int position, String title) throws Throwable {
int realPosition = position - 1;
Assert.assertEquals(title, results.get(realPosition).getTitle());
assertEquals(title, results.get(realPosition).getTitle());
}
@And("^Books should be (.+)$")

View File

@@ -18,9 +18,6 @@ import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
/**
* Created by ironman on 02/09/16.
*/
public class MainPresenterTest {
private static final List<Book> DUMMY_BOOKS = Arrays.asList(
new Book("Sample book one", "John Doe", Date.valueOf("2000-10-25")),