⚙️ build.gradle

dependencies {
	...
    testImplementation 'org.springframework:spring-test:5.3.22'
    testImplementation 'junit:junit:4.12'
}

test {
    useJUnitPlatform()
}

🧪 Test

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = ResourceManager.class)
public class TestResourceManager {

    @Test
    public void TDDTest(){
        ResourceManager rm = new ResourceManager();
        Resource resource = rm.getResource("test.html");
        System.out.println("resource : " + resource.getFilename());
        Assert.notNull(resource);
    }
}

🧩 Annotations

table without id
file.link as SpringTestAnnotation
from #Spring and #Annotation and #Test 
where file != this.file

연결문서

댓글남기기