Skip to content

Decouple direct dependency from DateTime #19

Open
@felixgao

Description

@felixgao

In AssignmentImpl and many other classes there is a directly dependencies on

        final Date currentDate = new Date();
        final long currentTime = currentDate.getTime();

this will make test hard and does not help create static test cases and data for the system.

abstract all date/time related operations to a separate class that can be override by a property file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions