Skip to content

Commit

Permalink
update dice test class
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksgata committed Oct 11, 2023
1 parent 3829ec2 commit f05700c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions rulateday-server/src/test/java/DiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.github.eiriksgata.trpg.dice.message.handle.InstructHandle;
import com.github.eiriksgata.trpg.dice.operation.impl.RollRoleImpl;
import com.github.eiriksgata.trpg.dice.operation.impl.SanCheckImpl;
import com.github.eiriksgata.trpg.dice.reply.CustomText;
import com.github.eiriksgata.trpg.dice.vo.MessageData;
import com.github.eiriksgata.rulateday.instruction.RollController;
import com.github.eiriksgata.rulateday.init.LoadDatabaseFile;
Expand All @@ -14,12 +15,6 @@
import java.text.MessageFormat;
import java.util.ResourceBundle;

/**
* author: create by Keith
* version: v1.0
* description: PACKAGE_NAME
* date:2020/10/12
**/
public class DiceTest {


Expand Down Expand Up @@ -55,12 +50,14 @@ void instructTest() {


@Test
void rollTest() {
void rollTest() throws Exception {
LoadDatabaseFile.initConfigCustomTextTool();
LoadDatabaseFile.createAndLoadConfigFile();

MessageData<?> messageData = new MessageData<>();
messageData.setQqID(123456789L);
InstructHandle instruct = new InstructHandle();
messageData.setMessage("r4d6");
messageData.setMessage("betaon");
try {
System.out.println(instruct.instructCheck(messageData));
} catch (DiceInstructException e) {
Expand Down

0 comments on commit f05700c

Please sign in to comment.