Skip to content

Commit 5faedb3

Browse files
Format code using IntelliJ style (#38)
1 parent 59dff64 commit 5faedb3

File tree

7 files changed

+43
-44
lines changed

7 files changed

+43
-44
lines changed

core/src/main/java/io/github/project/openubl/xsender/camel/utils/CamelUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static CamelData getBillServiceCamelData(ZipFile zipFile, BillServiceDest
6363

6464
public static CamelData getBillServiceCamelData(String ticket, BillServiceDestination destination, CompanyCredentials credentials) {
6565
Map<String, Object> headers = createBillServiceHeaders(destination.getUrl(), destination.getOperation().getWebMethod(), credentials);
66-
List<Object> body = Collections.singletonList(ticket);;
66+
List<Object> body = Collections.singletonList(ticket);
6767

6868
return CamelData.builder()
6969
.body(body)

core/src/test/java/io/github/project/openubl/xsender/camel/CxfTest.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,19 @@
2222
import io.github.project.openubl.xsender.company.CompanyCredentials;
2323
import io.github.project.openubl.xsender.company.CompanyURLs;
2424
import io.github.project.openubl.xsender.files.BillServiceFileAnalyzer;
25-
import io.github.project.openubl.xsender.sunat.BillConsultServiceDestination;
26-
import io.github.project.openubl.xsender.sunat.BillServiceDestination;
2725
import io.github.project.openubl.xsender.files.BillServiceXMLFileAnalyzer;
2826
import io.github.project.openubl.xsender.files.ZipFile;
2927
import io.github.project.openubl.xsender.models.Status;
3028
import io.github.project.openubl.xsender.models.SunatResponse;
29+
import io.github.project.openubl.xsender.sunat.BillConsultServiceDestination;
30+
import io.github.project.openubl.xsender.sunat.BillServiceDestination;
3131
import io.github.project.openubl.xsender.sunat.BillValidServiceDestination;
3232
import jodd.io.ZipBuilder;
3333
import org.apache.camel.CamelContext;
3434
import org.apache.camel.CamelExecutionException;
35-
import org.apache.cxf.binding.soap.SoapFault;
3635
import org.hamcrest.CoreMatchers;
3736
import org.junit.jupiter.api.AfterAll;
3837
import org.junit.jupiter.api.BeforeAll;
39-
import org.junit.jupiter.api.Disabled;
4038
import org.junit.jupiter.api.Test;
4139

4240
import java.io.IOException;

core/src/test/java/io/github/project/openubl/xsender/files/XMLBillServiceFileAnalyzerTest.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
public class XMLBillServiceFileAnalyzerTest {
3131

3232
private final CompanyURLs urls = CompanyURLs
33-
.builder()
34-
.invoice("invoiceUrl")
35-
.perceptionRetention("perceptionRetentionUrl")
36-
.despatch("despatchUrl")
37-
.build();
33+
.builder()
34+
.invoice("invoiceUrl")
35+
.perceptionRetention("perceptionRetentionUrl")
36+
.despatch("despatchUrl")
37+
.build();
3838

3939
protected void assertZipFile(BillServiceXMLFileAnalyzer xmlFileAnalyzer, String expectedZipFileName) {
4040
ZipFile zipFile = xmlFileAnalyzer.getZipFile();
@@ -45,9 +45,9 @@ protected void assertZipFile(BillServiceXMLFileAnalyzer xmlFileAnalyzer, String
4545
}
4646

4747
protected void assertFileDeliveryTarget(
48-
BillServiceXMLFileAnalyzer xmlFileAnalyzer,
49-
String expectedUrl,
50-
BillServiceDestination.Operation expectedMethod
48+
BillServiceXMLFileAnalyzer xmlFileAnalyzer,
49+
String expectedUrl,
50+
BillServiceDestination.Operation expectedMethod
5151
) {
5252
BillServiceDestination fileDeliveryTarget = xmlFileAnalyzer.getSendFileDestination();
5353

core/src/test/java/io/github/project/openubl/xsender/files/xml/XmlContentProviderTest.java

+28-28
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ public class XmlContentProviderTest {
3333
public void getSunatDocument_invoice() throws IOException, SAXException, ParserConfigurationException {
3434
// Given
3535
InputStream inputStream = Thread
36-
.currentThread()
37-
.getContextClassLoader()
38-
.getResourceAsStream("xmls/invoice.xml");
36+
.currentThread()
37+
.getContextClassLoader()
38+
.getResourceAsStream("xmls/invoice.xml");
3939
assertNotNull(inputStream);
4040

4141
// When
@@ -51,12 +51,12 @@ public void getSunatDocument_invoice() throws IOException, SAXException, ParserC
5151

5252
@Test
5353
public void getSunatDocument_invoice_withExtensionContent()
54-
throws IOException, SAXException, ParserConfigurationException {
54+
throws IOException, SAXException, ParserConfigurationException {
5555
// Given
5656
InputStream inputStream = Thread
57-
.currentThread()
58-
.getContextClassLoader()
59-
.getResourceAsStream("ubl/12345678912-01-F001-1.xml");
57+
.currentThread()
58+
.getContextClassLoader()
59+
.getResourceAsStream("ubl/12345678912-01-F001-1.xml");
6060
assertNotNull(inputStream);
6161

6262
// When
@@ -74,9 +74,9 @@ public void getSunatDocument_invoice_withExtensionContent()
7474
public void getSunatDocument_creditNote() throws IOException, SAXException, ParserConfigurationException {
7575
// Given
7676
InputStream inputStream = Thread
77-
.currentThread()
78-
.getContextClassLoader()
79-
.getResourceAsStream("xmls/credit-note.xml");
77+
.currentThread()
78+
.getContextClassLoader()
79+
.getResourceAsStream("xmls/credit-note.xml");
8080
assertNotNull(inputStream);
8181

8282
// When
@@ -94,9 +94,9 @@ public void getSunatDocument_creditNote() throws IOException, SAXException, Pars
9494
public void getSunatDocument_debitNote() throws IOException, SAXException, ParserConfigurationException {
9595
// Given
9696
InputStream inputStream = Thread
97-
.currentThread()
98-
.getContextClassLoader()
99-
.getResourceAsStream("xmls/debit-note.xml");
97+
.currentThread()
98+
.getContextClassLoader()
99+
.getResourceAsStream("xmls/debit-note.xml");
100100
assertNotNull(inputStream);
101101

102102
// When
@@ -114,9 +114,9 @@ public void getSunatDocument_debitNote() throws IOException, SAXException, Parse
114114
public void getSunatDocument_voidedDocument() throws IOException, SAXException, ParserConfigurationException {
115115
// Given
116116
InputStream inputStream = Thread
117-
.currentThread()
118-
.getContextClassLoader()
119-
.getResourceAsStream("xmls/voided-document.xml");
117+
.currentThread()
118+
.getContextClassLoader()
119+
.getResourceAsStream("xmls/voided-document.xml");
120120
assertNotNull(inputStream);
121121

122122
// When
@@ -134,9 +134,9 @@ public void getSunatDocument_voidedDocument() throws IOException, SAXException,
134134
public void getSunatDocument_summaryDocument() throws IOException, SAXException, ParserConfigurationException {
135135
// Given
136136
InputStream inputStream = Thread
137-
.currentThread()
138-
.getContextClassLoader()
139-
.getResourceAsStream("xmls/summary-document.xml");
137+
.currentThread()
138+
.getContextClassLoader()
139+
.getResourceAsStream("xmls/summary-document.xml");
140140
assertNotNull(inputStream);
141141

142142
// When
@@ -154,9 +154,9 @@ public void getSunatDocument_summaryDocument() throws IOException, SAXException,
154154
public void getSunatDocument_perception() throws IOException, SAXException, ParserConfigurationException {
155155
// Given
156156
InputStream inputStream = Thread
157-
.currentThread()
158-
.getContextClassLoader()
159-
.getResourceAsStream("xmls/perception.xml");
157+
.currentThread()
158+
.getContextClassLoader()
159+
.getResourceAsStream("xmls/perception.xml");
160160
assertNotNull(inputStream);
161161

162162
// When
@@ -174,9 +174,9 @@ public void getSunatDocument_perception() throws IOException, SAXException, Pars
174174
public void getSunatDocument_retention() throws IOException, SAXException, ParserConfigurationException {
175175
// Given
176176
InputStream inputStream = Thread
177-
.currentThread()
178-
.getContextClassLoader()
179-
.getResourceAsStream("xmls/retention.xml");
177+
.currentThread()
178+
.getContextClassLoader()
179+
.getResourceAsStream("xmls/retention.xml");
180180
assertNotNull(inputStream);
181181

182182
// When
@@ -194,9 +194,9 @@ public void getSunatDocument_retention() throws IOException, SAXException, Parse
194194
public void getSunatDocument_despatchAdvice() throws IOException, SAXException, ParserConfigurationException {
195195
// Given
196196
InputStream inputStream = Thread
197-
.currentThread()
198-
.getContextClassLoader()
199-
.getResourceAsStream("xmls/despatch-advice.xml");
197+
.currentThread()
198+
.getContextClassLoader()
199+
.getResourceAsStream("xmls/despatch-advice.xml");
200200
assertNotNull(inputStream);
201201

202202
// When

quarkus-extension/deployment/src/test/java/io/github/project/openubl/quarkus/xsender/test/QuarkusXsenderDevModeTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class QuarkusXsenderDevModeTest {
2828
// Start hot reload (DevMode) test with your extension loaded
2929
@RegisterExtension
3030
static final QuarkusDevModeTest devModeTest = new QuarkusDevModeTest()
31-
.setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));
31+
.setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));
3232

3333
@Test
3434
public void writeYourOwnDevModeTest() {

quarkus-extension/deployment/src/test/java/io/github/project/openubl/quarkus/xsender/test/QuarkusXsenderTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class QuarkusXsenderTest {
2828
// Start unit test with your extension loaded
2929
@RegisterExtension
3030
static final QuarkusUnitTest unitTest = new QuarkusUnitTest()
31-
.setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));
31+
.setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));
3232

3333
@Test
3434
public void writeYourOwnUnitTest() {

quarkus-extension/integration-tests/src/test/java/io/github/project/openubl/quarkus/xsender/it/QuarkusSenderResourceIT.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@
1919
import io.quarkus.test.junit.QuarkusIntegrationTest;
2020

2121
@QuarkusIntegrationTest
22-
public class QuarkusSenderResourceIT extends QuarkusXSenderResourceTest {}
22+
public class QuarkusSenderResourceIT extends QuarkusXSenderResourceTest {
23+
}

0 commit comments

Comments
 (0)