Skip to content

Commit f5279bf

Browse files
Update documentation for CommandTest
1 parent 0fd2c4a commit f5279bf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

testutil/src/main/java/org/spine3/test/CommandTest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
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-
3434
public 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);

0 commit comments

Comments
 (0)