This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Application2 { | |
public static class WordLengthCallable implements Callable { | |
public static int count = 0; | |
private final int numberOfThread = count++; | |
public Integer call() throws InterruptedException { | |
int sum = 0; | |
for (int i = 0; i < 100000; i++) { | |
sum += i; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CallableWithoutExecutorService2 { | |
public static class WordLengthCallable implements Callable { | |
public static int count = 0; | |
private final int numberOfThread = count++; | |
public Integer call() throws InterruptedException { | |
int sum = 0; | |
for (int i = 0; i < 100000; i++) { | |
sum += i; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArgumentCaptor<UserChangedCallBack> userCapture = ArgumentCaptor.forClass(UserChangedCallBack.class); | |
doNothing().when(dialogBoxPresenter).showDialog(any(User.class), userCapture.capture()); | |
usersListPresenter.onAddButtonClicked(); | |
userCapture.getValue().onChanged(user); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ArgumentCaptor<UserChangedCallBack> userCapture = ArgumentCaptor.forClass(UserChangedCallBack.class); | |
usersListPresenter.onAddButtonClicked(); | |
verify(dialogBoxPresenter).showDialog(any(User.class), userCapture.capture()); | |
userCapture.getValue().onChanged(user); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd HH:mm:s"); | |
String date = dateFormat.format(System.currentTimeMillis()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM aandrienko/test_private_repository_for_eclipse_che |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM test_private_repository_for_eclipse_che |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM codenvy/debian_jdk8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM aandrienko/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM aandrienko/test |
OlderNewer