package com.td.WaDa;

import com.td.WaDa.game.complayerlog.service.ComPlayerLogServiceImpl;
import com.td.WaDa.game.complayerscore.service.ComPlayerScoreService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class ComPlayerLogTests {

    @Autowired
    private ComPlayerLogServiceImpl comPlayerLogService;

    @Autowired
    private ComPlayerScoreService comPlayerScoreService;

    @Test
    public void powerLoss() {
        comPlayerLogService.powerLoss("1123");
    }

    @Test
    public void exchange() {
        comPlayerScoreService.exchange("1123", 2, 24);
    }
}
