Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code Quality Feedback for A0143873Y #40

Open
xpdavid opened this issue Apr 1, 2017 · 0 comments
Open

Code Quality Feedback for A0143873Y #40

xpdavid opened this issue Apr 1, 2017 · 0 comments

Comments

@xpdavid
Copy link

xpdavid commented Apr 1, 2017

Main

public class ClockTime {
    //private final Logger logger = LogsCenter.getLogger(ClockTime.class);

    public static final String MESSAGE_CLOCKTIME_CONSTRAINTS =
            "Clock time of task should be 24-hour form, eg: 23:59";

Comment out code?

/**
 * Represents a Task's time in the Tasklist.
 * Guarantees: immutable; is valid as declared in {@link #isValidClockTime(String)}
 */

public class ClockTime {
    //private final Logger logger = LogsCenter.getLogger(ClockTime.class);

There should not be an empty line between method body and Javadoc.

It seems that you don't have enough main code in the collate file. Hope you will work more on the main code.

Test

@Test
    public void isValidClockTime() {
        // blank clock time
        assertFalse(ClockTime.isValidClockTime("")); // empty string
        assertFalse(ClockTime.isValidClockTime(" ")); // spaces only

Test case naming conversion does not follow the coding standard. featureUnderTest_testScenario_expectedBehavior()

Also, it seems that you don't have enough test code in the collate file. Hope you will work more on the test code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant