Skip to content

Commit

Permalink
Merge pull request #358 from Exeexe93/branch-finalise-author
Browse files Browse the repository at this point in the history
Remove duplicate test file and  add author acknowledgment.
  • Loading branch information
Cherweijie authored Apr 12, 2020
2 parents ef5dfa3 + cd332b3 commit a3d7c50
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 129 deletions.
2 changes: 1 addition & 1 deletion docs/diagrams/UiClassDiagram.puml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ HelpWindow -[hidden]left- ReturnOrderListPanel
HelpWindow -[hidden]down- ReturnOrderCard
CommandBox -[hidden]left- ResultDisplay

@enduml
@enduml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ This Activity Diagram purpose is to describe the general work flow of the Import
useful for users, as it give them a general work flow of how Import command works and what they should expect out of
Delino when performing a Import command.

image::ImportClassDiagram.svg[width=50%]
image::ImportClassDiagram.svg[width=45%]
This Class Diagram purpose is to describe the dependencies of ImportCommand class when implementing this feature.
This diagram is essential to our Delino application because it allows developer or users who are interested to better
understand the underlying dependencies of ImportCommand class.

image::ImportCommandSequenceDiagram.svg[width=60%]
image::ImportCommandSequenceDiagram.svg[width=55%]
image::ExecuteImportCommand.svg[width=55%]
This Sequence Diagram shows a more detailed explanation of the communication between the different classes used in
The two sequence diagrams show a more detailed explanation of the communication between the different classes used in
the Logic and Model after the user execute the `import` command. This would allows the user to further understand how
ImportCommand works after `import` Command being executed.

* *Clear Feature UML Diagram*
image::ClearActivityDiagram.svg[width=60%]
image::ClearActivityDiagram.svg[width=55%]
The purpose of this Activity Diagram is to describe the general work flow of the Clear feature.
This diagram is especially useful for users, as it give them a general work flow of how Clear command works and what
they should expect out of Delino when performing a Clear command.
Expand All @@ -34,9 +34,9 @@ understand the underlying dependencies of SearchCommand class.

image::ClearCommandSequenceDiagram.svg[width=50%]
image::ExecuteClearCommand.svg[width=50%]
The two Sequence Diagram shows a more detailed explanation of the communication between the Logic and Model class of
The two sequence diagrams show a more detailed explanation of the communication between the Logic and Model class of
Delino when the `clear` command is being executed. During the parsing of ClearCommandParser, it will check if the flags
in the arguments are valid and whether if both `-r` and `-o` flags found in the arguments which will throws
in the arguments are valid and whether if both `-r` and `-o` flags are found in the arguments which will throws
ParseException if it fails the checks. This allows the user to be able to understand how the ClearCommand works after
executing the `clear` Command.

Expand All @@ -45,4 +45,4 @@ executing the `clear` Command.
image::StorageClassDiagram.svg[width=50%]
This Class Diagram purpose is to give a overview of a storage system in Delino, whereby StorageManager is interacting
with Logic Manager through the interface, Storage. This is essential to Delino, as it allows the developer or users
who are interested to better understand the relationship between StorageManager and the other storage class.
who are interested to better understand the relationship between StorageManager and the other storage class.
13 changes: 7 additions & 6 deletions src/main/java/seedu/delino/logic/parser/ParserUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ public static void parse(List<Prefix> prefixList, ArgumentMultimap argMultimap)
throw new ParseException(errorMessage);
}
}
//@@author Amoscheong97
/**
* Parses a {@code String tid} into a {@code TransactionId}.
* Leading and trailing whitespaces will be trimmed.
Expand All @@ -199,7 +200,7 @@ public static TransactionId parseTid(String tid) throws ParseException {
}
return new TransactionId(trimmedTid);
}

//@@author
/**
* Parses a {@code String name} into a {@code Name}.
* Leading and trailing whitespaces will be trimmed.
Expand Down Expand Up @@ -259,7 +260,7 @@ public static Address parseAddress(String address) throws ParseException {
}
return new Address(trimmedAddress);
}

//@@author Exeexe93
/**
* Parses a {@code String timeStamp} into an {@code TimeStamp}.
* Leading and trailing whitespaces will be trimmed.
Expand All @@ -282,7 +283,7 @@ public static TimeStamp parseTimeStamp(String timeStamp) throws ParseException {

return new TimeStamp(trimmedTimeStamp, REQUIRE_CHECK_IF_TIMESTAMP_BEFORE_NOW);
}

//@@author JeremyLoh
/**
* Parses a {@code String address} into an {@code Warehouse}.
* Leading and trailing whitespace will be removed.
Expand All @@ -297,7 +298,7 @@ public static Warehouse parseWarehouse(String address) throws ParseException {
}
return new Warehouse(trimmedAddress);
}

//@@author Amoscheong97
/**
* Parses a {@code String cod} into a {@code CashOnDelivery}.
* Leading and trailing whitespaces will be trimmed.
Expand All @@ -312,7 +313,7 @@ public static CashOnDelivery parseCash(String cod) throws ParseException {
}
return new CashOnDelivery(trimmedCash);
}

//@@author Exeexe93
/**
* Parses a {@code String comment} into a {@code Comment}.
* Leading and trailing whitespaces will be trimmed.
Expand All @@ -329,7 +330,7 @@ public static Comment parseComment(String comment) throws ParseException {
}
return new Comment(trimmedComment);
}

//@@author Amoscheong97
/**
* Parses a {@code String itemType} into a {@code TypeOfItem}
* Leading and trailing whitespaces will be trimmed.
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/seedu/delino/ui/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void fillInnerParts() {
// Try to start clock
showTime();
}

//@@author Exeexe93
/**
* Print out start up message to user.
*/
Expand All @@ -214,7 +214,7 @@ private void printStartUpMessage() {
}
resultDisplay.setFeedbackToUser(printMessage);
}

//@@author
/**
* Sets the default size based on {@code guiSettings}.
*/
Expand Down Expand Up @@ -254,7 +254,6 @@ public void handleClearWarning(String warningMessage) {
clearWindow.focus();
}
}
//@@author

//@@Amoscheong97
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import seedu.delino.model.OrderBook;
import seedu.delino.model.ReturnOrderBook;
import seedu.delino.model.UserPrefs;

//@@author Exeexe93
public class ClearCommandTest {
private HashSet<String> flags;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package seedu.delino.model.parcel.comment;
package seedu.delino.model.parcel.optionalparcelattributes;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
Expand All @@ -7,8 +7,6 @@

import org.junit.jupiter.api.Test;

import seedu.delino.model.parcel.optionalparcelattributes.Comment;

//@@author Exeexe93
class CommentTest {
@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package seedu.delino.model.parcel.itemtype;
package seedu.delino.model.parcel.optionalparcelattributes;

import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.delino.testutil.Assert.assertThrows;

import org.junit.jupiter.api.Test;

import seedu.delino.model.parcel.optionalparcelattributes.TypeOfItem;

public class TypeOfItemTest {
@Test
public void constructor_null_throwsNullPointerException() {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
import seedu.delino.model.parcel.parcelattributes.TransactionId;
import seedu.delino.model.parcel.parcelattributes.Warehouse;

//@@author Exeexe93
public class JsonAdaptedReturnOrderTest {
private static final String INVALID_TID = " ";
private static final String INVALID_NAME = "R@chel";
private static final String INVALID_PHONE = "+651234";
private static final String INVALID_EMAIL = "1234gg.com";
private static final String INVALID_ADDRESS = " ";
private static final String INVALID_TIMESTAMP = "2019-02-32 1500";
private static final String INVALID_TIMESTAMP_BEFORE_NOW = "2019-02-02 1500";
private static final String INVALID_WAREHOUSE = "";
private static final String INVALID_COMMENT = " ";
private static final String INVALID_TYPE = "#bottle";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import seedu.delino.model.ReturnOrderBook;
import seedu.delino.model.parcel.returnorder.ReturnOrder;

//@@author Exeexe93
/**
* A utility class containing a list of {@code ReturnOrder} objects to be used in tests.
*/
Expand Down

0 comments on commit a3d7c50

Please sign in to comment.