Skip to content

Commit 3f272bf

Browse files
authored
Merge pull request iluwatar#548 from muditporwal/master
Checkstyle improvements iluwatar#539 : Added JavaDocType Rule
2 parents 2921448 + 09585c3 commit 3f272bf

File tree

103 files changed

+573
-280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+573
-280
lines changed

abstract-factory/src/test/java/com/iluwatar/abstractfactory/AbstractFactoryTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
import org.junit.Before;
2929
import org.junit.Test;
3030

31+
/**
32+
* Test for abstract factory
33+
*/
3134
public class AbstractFactoryTest {
3235

3336
private App app = new App();

aggregator-microservices/aggregator-service/src/main/java/com/iluwatar/aggregator/microservices/App.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
import org.springframework.boot.SpringApplication;
2626
import org.springframework.boot.autoconfigure.SpringBootApplication;
2727

28+
/**
29+
* Spring Boot EntryPoint Class
30+
*/
2831
@SpringBootApplication
2932
public class App {
3033

aggregator-microservices/aggregator-service/src/test/java/com/iluwatar/aggregator/microservices/AggregatorTest.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@
2222
*/
2323
package com.iluwatar.aggregator.microservices;
2424

25+
import static org.junit.Assert.assertEquals;
26+
import static org.mockito.Mockito.when;
27+
2528
import org.junit.Before;
2629
import org.junit.Test;
2730
import org.mockito.InjectMocks;
2831
import org.mockito.Mock;
2932
import org.mockito.MockitoAnnotations;
3033

31-
import static org.junit.Assert.assertEquals;
32-
import static org.mockito.Mockito.when;
33-
34+
/**
35+
* Test Aggregation of domain objects
36+
*/
3437
public class AggregatorTest {
3538

3639
@InjectMocks
@@ -64,4 +67,4 @@ public void testGetProduct() {
6467
assertEquals(inventories, testProduct.getProductInventories());
6568
}
6669

67-
}
70+
}

aggregator-microservices/information-microservice/src/main/java/com/iluwatar/information/microservice/InformationController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
import org.springframework.web.bind.annotation.RequestMethod;
2727
import org.springframework.web.bind.annotation.RestController;
2828

29+
/**
30+
* Controller providing endpoints to retrieve information about products
31+
*/
2932
@RestController
3033
public class InformationController {
3134

aggregator-microservices/information-microservice/src/test/java/com/iluwatar/information/microservice/InformationControllerTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
import org.junit.Assert;
2626
import org.junit.Test;
2727

28+
/**
29+
* Test for Information Rest Controller
30+
*/
2831
public class InformationControllerTest {
2932

3033
@Test
@@ -36,4 +39,4 @@ public void shouldGetProductTitle() {
3639
Assert.assertEquals("The Product Title.", title);
3740
}
3841

39-
}
42+
}

aggregator-microservices/inventory-microservice/src/main/java/com/iluwatar/inventory/microservice/InventoryController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
import org.springframework.web.bind.annotation.RequestMethod;
2727
import org.springframework.web.bind.annotation.RestController;
2828

29+
/**
30+
* Controller providing endpoints to retrieve product inventories
31+
*/
2932
@RestController
3033
public class InventoryController {
3134

aggregator-microservices/inventory-microservice/src/test/java/com/iluwatar/inventory/microservice/InventoryControllerTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@
2525
import org.junit.Assert;
2626
import org.junit.Test;
2727

28+
/**
29+
* Test Inventory Rest Controller
30+
*/
2831
public class InventoryControllerTest {
29-
3032
@Test
3133
public void testGetProductInventories() throws Exception {
3234
InventoryController inventoryController = new InventoryController();
@@ -35,4 +37,4 @@ public void testGetProductInventories() throws Exception {
3537

3638
Assert.assertEquals(5, numberOfInventories);
3739
}
38-
}
40+
}

api-gateway/api-gateway-service/src/test/java/com/iluwatar/api/gateway/ApiGatewayTest.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@
2222
*/
2323
package com.iluwatar.api.gateway;
2424

25+
import static org.junit.Assert.assertEquals;
26+
import static org.mockito.Mockito.when;
27+
2528
import org.junit.Before;
2629
import org.junit.Test;
2730
import org.mockito.InjectMocks;
2831
import org.mockito.Mock;
2932
import org.mockito.MockitoAnnotations;
3033

31-
import static org.junit.Assert.assertEquals;
32-
import static org.mockito.Mockito.when;
33-
34+
/**
35+
* Test API Gateway Pattern
36+
*/
3437
public class ApiGatewayTest {
3538

3639
@InjectMocks

api-gateway/image-microservice/src/test/java/com/iluwatar/image/microservice/ImageControllerTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
import org.junit.Assert;
2626
import org.junit.Test;
2727

28+
/**
29+
* Test for Image Rest Controller
30+
*/
2831
public class ImageControllerTest {
2932
@Test
3033
public void testGetImagePath() {

api-gateway/price-microservice/src/test/java/com/iluwatar/price/microservice/PriceControllerTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
import org.junit.Assert;
2626
import org.junit.Test;
2727

28+
29+
/**
30+
* Test for Price Rest Controller
31+
*/
2832
public class PriceControllerTest {
2933
@Test
3034
public void testgetPrice() {

0 commit comments

Comments
 (0)