// Path: main-kata/src/main/java/kata/domain/Task.java
// public class Task extends TaskAbstract
// {
//     public Task(Timestamp processingDate)
//     {
//         super(processingDate);
//         // You must not modify this constructor. Mithra calls this internally.
//         // You can call this constructor. You can also add new constructors.
//     }
// 
//     @Override
//     public String toString()
//     {
//         return "Task[name=" + this.getName()
//                 + "; from=" + this.getProcessingDateFrom()
//                 + "; to=" + this.getProcessingDateTo()
//                 + "; status=" + this.getStatus() + ']';
//     }
// }
// 
// Path: main-kata/src/main/java/kata/domain/TaskList.java
// public class TaskList
//         extends TaskListAbstract
// {
// 	public TaskList()
// 	{
// 		super();
// 	}
// 
// 	public TaskList(int initialSize)
// 	{
// 		super(initialSize);
// 	}
// 
// 	public TaskList(Collection c)
// 	{
// 		super(c);
// 	}
// 
// 	public TaskList(Operation operation)
// 	{
// 		super(operation);
// 	}
// }


import org.eclipse.collections.impl.block.factory.Predicates;
import org.eclipse.collections.impl.set.mutable.UnifiedSet;
import org.eclipse.collections.impl.test.Verify;
import kata.domain.Task;
import kata.domain.TaskFinder;
import kata.domain.TaskList;
import org.junit.Assert;
import org.junit.Test;
import java.sql.Timestamp;
import java.util.Date;
/*
 Copyright 2018 Goldman Sachs.
 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 kata.test;



public class ExercisesAuditOnly
        extends AbstractMithraTest
{
    @Override
    protected String[] getTestDataFilenames()
    {
        return new String[]{"testdata/data_Tasks.txt"}; // Look into this file to see the test data being used
    }

// **** NOTES ****
// (1)
// Different applications can have different conventions to represent the business dates and processing dates.
// In this exercise, we are using:
// * IN_Z<@processingDate, OUT_Z> = @processingDate (see toIsInclusive() in processingDate attribute
// * Infinity date = "9999-12-01 23:59:00.0", a.k.a. kata.util.TimestampProvider.getInfinityDate().
// Look at the definition of the processingDate attribute in Task.xml to see how this is defined/used.
//
// (2)
// Are you completely unfamiliar with chaining?
// See the Reladomo documentation

//------------------------ Question 1 --------------------------------------------------------
// Get all Tasks

// Path: main-kata/src/main/java/kata/domain/Task.java
// public class Task extends TaskAbstract
// {
//     public Task(Timestamp processingDate)
//     {
//         super(processingDate);
//         // You must not modify this constructor. Mithra calls this internally.
//         // You can call this constructor. You can also add new constructors.
//     }
// 
//     @Override
//     public String toString()
//     {
//         return "Task[name=" + this.getName()
//                 + "; from=" + this.getProcessingDateFrom()
//                 + "; to=" + this.getProcessingDateTo()
//                 + "; status=" + this.getStatus() + ']';
//     }
// }
// 
// Path: main-kata/src/main/java/kata/domain/TaskList.java
// public class TaskList
//         extends TaskListAbstract
// {
// 	public TaskList()
// 	{
// 		super();
// 	}
// 
// 	public TaskList(int initialSize)
// 	{
// 		super(initialSize);
// 	}
// 
// 	public TaskList(Collection c)
// 	{
// 		super(c);
// 	}
// 
// 	public TaskList(Operation operation)
// 	{
// 		super(operation);
// 	}
// }


// Path: main-kata/src/test/java/kata/test/ExercisesAuditOnly.java
import org.eclipse.collections.impl.block.factory.Predicates;
import org.eclipse.collections.impl.set.mutable.UnifiedSet;
import org.eclipse.collections.impl.test.Verify;
import kata.domain.Task;
import kata.domain.TaskFinder;
import kata.domain.TaskList;
import org.junit.Assert;
import org.junit.Test;
import java.sql.Timestamp;
import java.util.Date;

/*
 Copyright 2018 Goldman Sachs.
 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 kata.test;



public class ExercisesAuditOnly
        extends AbstractMithraTest
{
    @Override
    protected String[] getTestDataFilenames()
    {
        return new String[]{"testdata/data_Tasks.txt"}; // Look into this file to see the test data being used
    }

// **** NOTES ****
// (1)
// Different applications can have different conventions to represent the business dates and processing dates.
// In this exercise, we are using:
// * IN_Z<@processingDate, OUT_Z> = @processingDate (see toIsInclusive() in processingDate attribute
// * Infinity date = "9999-12-01 23:59:00.0", a.k.a. kata.util.TimestampProvider.getInfinityDate().
// Look at the definition of the processingDate attribute in Task.xml to see how this is defined/used.
//
// (2)
// Are you completely unfamiliar with chaining?
// See the Reladomo documentation

//------------------------ Question 1 --------------------------------------------------------
// Get all Tasks

    public TaskList getActiveTasks()