| MockCertificateServer | Line # 9 | 4 | 4 | 66.7% |
0.6666667
|
| (1) | |||
| Result | |||
|
0.6666667
|
com.atlassian.security.auth.trustedapps.filter.TestTrustedApplicationsFilter.testCertificateServerCalledForTrustURL
com.atlassian.security.auth.trustedapps.filter.TestTrustedApplicationsFilter.testCertificateServerCalledForTrustURL
|
1 PASS | |
| 1 | package com.atlassian.security.auth.trustedapps.filter; | |
| 2 | ||
| 3 | import java.io.IOException; | |
| 4 | import java.io.Writer; | |
| 5 | ||
| 6 | /** | |
| 7 | * | |
| 8 | */ | |
| 9 | public class MockCertificateServer implements TrustedApplicationsFilter.CertificateServer | |
| 10 | { | |
| 11 | private String certificate; | |
| 12 | ||
| 13 | 1 |
public void writeCertificate(Writer writer) throws IOException |
| 14 | { | |
| 15 | 1 | if (certificate != null) |
| 16 | { | |
| 17 | 1 | writer.write(certificate); |
| 18 | } | |
| 19 | } | |
| 20 | ||
| 21 | 0 |
public String getCertificate() |
| 22 | { | |
| 23 | 0 | return certificate; |
| 24 | } | |
| 25 | ||
| 26 | 1 |
public void setCertificate(String certificate) |
| 27 | { | |
| 28 | 1 | this.certificate = certificate; |
| 29 | } | |
| 30 | } | |
|
||||||||||