Skip to content
Snippets Groups Projects
Commit 5f9dacf6 authored by Ondřej Hrdlička's avatar Ondřej Hrdlička
Browse files

Deleted TemporaryValueProvider.java

parent 19c04c8f
No related branches found
No related tags found
2 merge requests!52Final project MR,!45Activating most of the app
package cz.muni.fi.pv168.project.data;
import cz.muni.fi.pv168.project.data.category.Category;
import cz.muni.fi.pv168.project.data.task.SubTask;
import cz.muni.fi.pv168.project.data.task.Task;
import org.joda.time.Duration;
import java.awt.Color;
import java.time.LocalDate;
import java.util.List;
public final class TemporaryValueProvider {
private TemporaryValueProvider() {
}
public static final List<Category> CATEGORIES = List.of(
new Category("Work", Color.RED, Duration.standardHours(28)),
new Category("Partner", Color.BLUE, Duration.standardDays(8).plus(Duration.standardHours(3))),
new Category("School", Color.MAGENTA, Duration.standardMinutes(8880)),
new Category("Chores", Color.ORANGE, Duration.ZERO),
new Category("Meta", Color.BLACK, Duration.standardDays(69))
);
public static List<Task> getTaskList() {
Task task1 = Task.builder("Buy groceries", 5, LocalDate.of(2022, 1, 1))
.setCategories(List.of(CATEGORIES.get(3)))
.setSubTasks(List.of(new SubTask("Buy cat food"), new SubTask("Buy mexican ingredients")))
.build();
Task task2 = Task.builder("Cook lunch", 9, LocalDate.of(2022, 1, 1))
.setCategories(List.of(CATEGORIES.get(3)))
.setDescription("The guests should arrive at about 1PM.")
.setDependencyTasks(List.of(task1))
.build();
Task taskJoke = Task.builder(
"Extremely long named task, honestly this name is so long that there is no way this fits anywhere reasonable",
0, LocalDate.of(2021, 12, 24)
).setDescription(
"As a funny joke, it also has an absurdly long and ardous description! " +
"Who would have though, am I right or am I wrong, fellas. Honestly, such a " +
"long description! " +
"Reaching abnormal lengths here of both the text and my writing capabilities." +
" " +
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed incididunt ut " +
"labore dolore magna aliqua. " +
"Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut " +
"ex ea commodo consequat. " +
"Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore" +
" eu fugiat nulla pariatur. " +
"Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia " +
"deserunt mollit id est laborum."
)
.build();
Task taskUrgent = Task.builder("Urgent Task!!!", 1, LocalDate.now()).build();
Task taskMeta = Task.builder("Finish to:do app", 50, LocalDate.of(2022, 2, 11))
.setDescription("PV168/01/01")
.setCategories(List.of(CATEGORIES.get(2), CATEGORIES.get(4)))
.setSubTasks(List.of(new SubTask("Milestone 1"), new SubTask("Milestone 2")))
.setDependencyTasks(List.of(taskJoke))
.build();
Task taskFull = Task.builder("Full task to show off", 42, LocalDate.of(2022, 3, 31))
.setDescription("Another description for you.")
.setCategories(List.of(CATEGORIES.get(1), CATEGORIES.get(2)))
.setSubTasks(
List.of(new SubTask("Subtask 1"),
new SubTask("Subtask 2"))
)
.setDependencyTasks(List.of(task1, task2))
.build();
return List.of(
task1,
task2,
taskJoke,
taskUrgent,
taskMeta,
taskFull
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment