Skip to content

Commit

Permalink
Merge pull request #72 from robmoffat/master
Browse files Browse the repository at this point in the history
Fix for #50
  • Loading branch information
sureshrupnar authored Sep 23, 2020
2 parents 27af1b1 + 582c56d commit 8c977be
Show file tree
Hide file tree
Showing 6 changed files with 91 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,4 @@

String[] rooms() default {};

/**
* Use this with a pasted table command
*/
String[] columns() default {};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
package com.github.deutschebank.symphony.workflow.fixture;

import com.github.deutschebank.symphony.workflow.content.Author;
import com.github.deutschebank.symphony.workflow.content.User;
import com.github.deutschebank.symphony.workflow.java.Work;

@Work(editable = false, instructions = "Expenses Claim")
public class Claim {

enum Status { OPEN, APPROVED, PAID };

String description;

Author author;

float amount;

User approvedBy;

User paidBy;

Status status;

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}

public Author getAuthor() {
return author;
}

public void setAuthor(Author author) {
this.author = author;
}

public float getAmount() {
return amount;
}

public void setAmount(float amount) {
this.amount = amount;
}

public User getApprovedBy() {
return approvedBy;
}

public void setApprovedBy(User approvedBy) {
this.approvedBy = approvedBy;
}

public User getPaidBy() {
return paidBy;
}

public void setPaidBy(User paidBy) {
this.paidBy = paidBy;
}

public Status getStatus() {
return status;
}

public void setStatus(Status status) {
this.status = status;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.github.deutschebank.symphony.workflow.fixture;

public class StartClaim {

String description;

float amount;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

public class ProxyingWrapper {

private static final String DEFAULT_JKS_RESOURCE = "all_symphony_certs_truststore.jks";

private final List<String> proxyHosts;

private final Logger log;
Expand All @@ -39,14 +37,16 @@ public ProxyingWrapper(String jksFile, List<String> proxyHosts, String url, Symp

InputStream is = readJks(jksFile);

try {
TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
KeyStore keystore = KeyStore.getInstance("JKS");
keystore.load(is, null);
tmf.init(keystore);
builder.setTrustManagers(tmf.getTrustManagers());
} catch (Exception e) {
throw new RuntimeException("Couldn't instantiate trust store", e);
if (is != null) {
try {
TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
KeyStore keystore = KeyStore.getInstance("JKS");
keystore.load(is, null);
tmf.init(keystore);
builder.setTrustManagers(tmf.getTrustManagers());
} catch (Exception e) {
throw new RuntimeException("Couldn't instantiate trust store", e);
}
}
}

Expand Down Expand Up @@ -89,7 +89,7 @@ private InputStream readJks(String jksFile) throws IOException {
return new FileInputStream(jksFile);
} else {
log.info("trust-store.jks was not specified, using default jks");
return this.getClass().getClassLoader().getResourceAsStream(DEFAULT_JKS_RESOURCE);
return null;
}
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</#if>
</td>
<td>
${p.time / 1000} Seconds
${p.time } ms
</td>
</tr>
</#list>
Expand Down

0 comments on commit 8c977be

Please sign in to comment.