Junit에서 Exception이 발생할 경우 성공으로 확인하고 싶을 때는 다음과 같이 excepted를 추가해주면 된다.

 

@Test(expected=UnsupportedOperationException.class)

public void renameFolder() {

    this.obj.renameFolder("", "");

}

 

파란막대 좋아~ ^^*

+ Recent posts