package com.gek.mapper;

import com.gek.pojo.User;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 *spring是
 */

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:/spring/application*.xml")
public class UserMapperTestCase {

    @Autowired
    private UserMapper userMapper;

    @Test
    public void testselectByUsername() {
        User tom = userMapper.selectByUsername("tom");
        Assert.assertNotNull(tom);
    }
}

@@ -336,16 +336,17 @@
 *spring%E6%98%AF
+s
 %0A */%0A%0A@R

测试用户123