(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
URI jiraServerUri = new URI("/api/issues/v1/bahnof"); | |
final AsynchronousJiraRestClientFactory factory = new AsynchronousJiraRestClientFactory(); | |
final JiraRestClient restClient = factory.createWithBasicHttpAuthentication(jiraServerUri, "admin", "admin"); | |
public RestJiraService() throws URISyntaxException { | |
} | |
public void snippet1(JiraRestClient restClient) { | |
Issue issue = restClient.getIssueClient().getIssue("TST-1").claim(); | |
} |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
public void registerNewColleague(string firstName, string lastName, Role role = Role.Developer, double salary = 4500.00) | |
{ | |
// Do something usefull here | |
} |
import static org.mockito.Mockito.*; | |
import java.util.HashMap; | |
import java.util.Map; | |
import org.junit.Test; | |
public class MockitoSpyExample { | |
@Test | |
public void spyExample_nominal_case_Test() { | |
Map<String, String> hashMap = new HashMap<String, String>(); | |
Map<String, String> mapSpy = spy(hashMap); |
class CreatePurchases < ActiveRecord::Migration | |
def change | |
create_table :purchases do |t| | |
t.string :name | |
t.float :cost | |
t.timestamps | |
end | |
end | |
end |
$ pwd
/home/alompo/spreadsheet
$ ls -A
hyperoffice/ commons/ utilities/ readme.md .svn/
$ svn update
Updating '.'
A display here of the list of updated resources
Updated to revision 57.
$
package org.lompo.technical.tools.gists; | |
public interface TaskExecutionListener { | |
public void taskStarted(); | |
public void taskStatusChanged(TaskStatus oldTaskStatus, TaskStatus newTaskStatus); | |
public void taskFinished(TaskStatus taskFinishStatus); | |
} |
import lombok.Data; | |
@Data | |
public class Resource { | |
private String name; | |
private String description; | |
public Resource(String name, String description) { | |
this.name = name; | |
this.description = description; | |
} |
import java.math.BigDecimal; | |
import lombok.AccessLevel; | |
import lombok.Data; | |
import lombok.EqualsAndHashCode; | |
import lombok.Getter; | |
import lombok.Setter; | |
@Data | |
@EqualsAndHashCode(callSuper=false) |