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

Add ListCommand closes #7 #49

Merged
merged 2 commits into from
Oct 12, 2024

Conversation

cnivedit
Copy link

Create ListCommand class with empty constructor, execute method overrides baseclass
Add JUnit tests for empty list and sample test cases

Copy link
Collaborator

@yijiano yijiano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

public class ListCommand extends Command{
public ListCommand() {}

@Override
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work here, clean and concise code. Maybe you can add JavaDocs next time.


//Compare output
String output = outputStream.toString();
assertEquals(output, expectedOutput);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work on the JUnit test implementation for ListItems!

@yijiano yijiano merged commit 8aecbe5 into AY2425S1-CS2113-W14-4:master Oct 12, 2024
3 checks passed
This was linked to issues Oct 12, 2024
Closed
@cnivedit cnivedit added this to the v1.0 milestone Oct 13, 2024
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

Successfully merging this pull request may close these issues.

Add ItemList Class List
2 participants