File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
testutil/src/main/java/org/spine3/test Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 2626/**
2727 * An abstract base for nested tests of aggregate specifications.
2828 *
29+ * @param <C> the type of the command message to test
2930 * @author Alexander Yevsyukov
3031 */
3132@ SuppressWarnings ({"ProtectedField" /* we want easier access from test suites */ ,
3233 "unused" , "AbstractClassNeverImplemented" /* is supposed to be used from outside */ })
33-
3434public abstract class CommandTest <C extends Message > {
3535
3636 protected final TestCommandFactory commandFactory = TestCommandFactory .newInstance (getClass ());
@@ -39,8 +39,14 @@ public abstract class CommandTest<C extends Message> {
3939
4040 protected Command command ;
4141
42+ /**
43+ * Factory method to create a command message.
44+ */
4245 protected abstract C createCommandMessage ();
4346
47+ /**
48+ * Creates a new command.
49+ */
4450 protected void createCommand () {
4551 commandMessage = createCommandMessage ();
4652 command = commandFactory .create (commandMessage );
You can’t perform that action at this time.
0 commit comments