You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agree with you. Perhaps "[Show]<-[Ticket]" is enough because only the existence of reference is checked in corresponding test class ShowAndTicketTest.java.
Also in the test class, I think the second usages of method limitAttributeCount should be called with ("Ticket", 3), rather than ("Show", 3).
@TestpublicvoidClassesExist() {
PrivateAttributesExist("Show", "movie", String.class);
PrivateAttributesExist("Show", "time", String.class);
limitAttributeCount("Show", 2);
PrivateAttributesExist("Ticket", "seat", int.class);
PrivateAttributesExist("Ticket", "code", int.class);
limitAttributeCount("Show", 3); // the first argument should be "Ticket"referenceExists("Ticket", "Show");
}
class diagram is:
[Show]<-*[Ticket]
[Show|- movie: String;- time: String]
[Ticket|- seat: int;- code: int]
there should be:
[Show]<show-[Ticket]
[Show|- movie: String;- time: String]
[Ticket|- seat: int;- code: int]
The text was updated successfully, but these errors were encountered: