Commit cc59463c authored by Christos Tranoris's avatar Christos Tranoris
Browse files

update tests

parent 26321659
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -435,14 +435,15 @@
                	<runOrder>alphabetical</runOrder>
                	<forkCount>1</forkCount>
                	<reuseForks>true</reuseForks>
                	<!-- Memory settings -->
                	<argLine>@{argLine} -Xmx2048m -Xms512m -XX:MaxMetaspaceSize=512m</argLine>
            	</configuration>
			</plugin>
			<plugin>
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
				<version>0.8.12</version>
				<configuration>
					<skip>true</skip>
				</configuration>
				<executions>
					<execution>
						<goals>
@@ -463,6 +464,9 @@
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
				<version>0.8.12</version>
				<configuration>
					<skip>true</skip>
				</configuration>
				<executions>
					<execution>
						<goals>
+17 −5
Original line number Diff line number Diff line
@@ -91,8 +91,13 @@ public class CatalogCallbackService {
            ResponseEntity<String> response = restTemplate.exchange(
                url, HttpMethod.POST, entity, String.class);

            if (response!=null) {
              logger.info("Successfully sent catalog create event to callback URL: {} - Response: {}", 
                url, response.getStatusCode());   
            } else {
              logger.error("category delete event to callback URL: {} - Response: IS NULL", 
                  url);
            }
            
        } catch (Exception e) {
            logger.error("Failed to send catalog create event to callback URL: {}", url, e);
@@ -115,8 +120,15 @@ public class CatalogCallbackService {
            ResponseEntity<String> response = restTemplate.exchange(
                url, HttpMethod.POST, entity, String.class);
            

            if (response!=null) {
              logger.info("Successfully sent catalog delete event to callback URL: {} - Response: {}", 
                url, response.getStatusCode());        
            } else {
              logger.error("catalog delete event to callback URL: {} - Response: IS NULL", 
                  url);
            }
            
            
        } catch (Exception e) {
            logger.error("Failed to send catalog delete event to callback URL: {}", url, e);
+15 −6
Original line number Diff line number Diff line
@@ -90,8 +90,13 @@ public class CategoryCallbackService {
            ResponseEntity<String> response = restTemplate.exchange(
                url, HttpMethod.POST, entity, String.class);

            if (response!=null) {
              logger.info("Successfully sent category create event to callback URL: {} - Response: {}", 
                url, response.getStatusCode());   
            } else {
              logger.error("category delete event to callback URL: {} - Response: IS NULL", 
                  url);
            }
            
        } catch (Exception e) {
            logger.error("Failed to send category create event to callback URL: {}", callbackUrl, e);
@@ -113,9 +118,13 @@ public class CategoryCallbackService {
            
            ResponseEntity<String> response = restTemplate.exchange(
                url, HttpMethod.POST, entity, String.class);
            
            if (response!=null) {
              logger.info("Successfully sent category delete event to callback URL: {} - Response: {}", 
                  url, response.getStatusCode());             
            } else {
              logger.error("category delete event to callback URL: {} - Response: IS NULL", 
                  url);
            }
            
        } catch (Exception e) {
            logger.error("Failed to send category delete event to callback URL: {}", callbackUrl, e);
+11 −6
Original line number Diff line number Diff line
@@ -120,6 +120,7 @@ public class ProductOfferingCallbackService {
            ResponseEntity<String> response = restTemplate.exchange(
                url, HttpMethod.POST, entity, String.class);
            
            if ( response!= null)
              logger.info("Successfully sent product offering create event to callback URL: {} - Response: {}", 
                url, response.getStatusCode());
            
@@ -144,6 +145,7 @@ public class ProductOfferingCallbackService {
            ResponseEntity<String> response = restTemplate.exchange(
                url, HttpMethod.POST, entity, String.class);

            if ( response!= null)
              logger.info("Successfully sent product offering delete event to callback URL: {} - Response: {}", 
                url, response.getStatusCode());
            
@@ -168,6 +170,8 @@ public class ProductOfferingCallbackService {
            ResponseEntity<String> response = restTemplate.exchange(
                url, HttpMethod.POST, entity, String.class);
            

            if ( response!= null)
              logger.info("Successfully sent product offering attribute value change event to callback URL: {} - Response: {}", 
                url, response.getStatusCode());
            
@@ -192,6 +196,7 @@ public class ProductOfferingCallbackService {
            ResponseEntity<String> response = restTemplate.exchange(
                url, HttpMethod.POST, entity, String.class);

            if ( response!= null)
              logger.info("Successfully sent product offering state change event to callback URL: {} - Response: {}", 
                url, response.getStatusCode());
            
+12 −2
Original line number Diff line number Diff line
@@ -90,8 +90,13 @@ public class ProductSpecificationCallbackService {
            ResponseEntity<String> response = restTemplate.exchange(
                url, HttpMethod.POST, entity, String.class);

            if (response!=null) {
            logger.info("Successfully sent product specification create event to callback URL: {} - Response: {}", 
                url, response.getStatusCode());
            } else {
              logger.error("product create event to callback URL: {} - Response: IS NULL", 
                  url);
            }
            
        } catch (Exception e) {
            logger.error("Failed to send product specification create event to callback URL: {}", callbackUrl, e);
@@ -114,8 +119,13 @@ public class ProductSpecificationCallbackService {
            ResponseEntity<String> response = restTemplate.exchange(
                url, HttpMethod.POST, entity, String.class);

            if (response!=null) {
            logger.info("Successfully sent product specification delete event to callback URL: {} - Response: {}", 
                url, response.getStatusCode());
            } else {
              logger.error("product delete event to callback URL: {} - Response: IS NULL", 
                  url);
            }
            
        } catch (Exception e) {
            logger.error("Failed to send product specification delete event to callback URL: {}", callbackUrl, e);
Loading