Jak napisać test junit dla metody void, która tworzy nowy obiekt
public class SupportController{
public void disableUserAccount(String username) throws Exception {
UserAccount userAccount =
new UserAccount(Constants.SYSTEM, Constants.CONTAINER, username);
UserAccount.disableAccount();
}
}
Jak przetestowałbym, że utworzone konto użytkownika jest wyłączone?