This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.web.core.servlets; | |
import com.day.cq.commons.jcr.JcrConstants; | |
import com.day.cq.search.PredicateGroup; | |
import com.day.cq.search.Query; | |
import com.day.cq.search.QueryBuilder; | |
import com.day.cq.search.result.Hit; | |
import com.day.cq.search.result.SearchResult; | |
import org.apache.commons.collections.CollectionUtils; | |
import org.apache.sling.api.SlingHttpServletRequest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.sling.api.resource.NonExistingResource; | |
.. | |
public class AemTag { | |
.. | |
@Expose | |
private final String id; | |
@Expose | |
private final String title; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.engg.java.reactive; | |
import org.springframework.web.bind.annotation.RestController; | |
import org.springframework.web.bind.annotation.GetMapping; | |
@RestController | |
public class TestController { | |
@GetMapping | |
public String sample() { | |
ReqResWebClient webClient = new ReqResWebClient(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.engg.java.reactive; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
@SpringBootApplication | |
public class ReactiveApplication { | |
public static void main(String[] args) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.engg.java.reactive; | |
import org.springframework.http.MediaType; | |
import org.springframework.web.reactive.function.client.ClientResponse; | |
import org.springframework.web.reactive.function.client.WebClient; | |
import reactor.core.publisher.Mono; | |
import reactor.core.publisher.Flux; | |
import com.engg.java.reactive.reqres.User; | |
public class ReqResWebClient { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.6.0</version> | |
<executions> | |
<execution> | |
<id>integration-test</id> | |
<phase>verify</phase> | |
<goals> | |
<goal>exec</goal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.6.0</version> | |
<executions> | |
<execution> | |
<id>install-tester</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>exec</goal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.weathertracker; | |
import static springfox.documentation.builders.PathSelectors.regex; | |
import java.util.Collections; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import springfox.documentation.builders.ApiInfoBuilder; | |
import springfox.documentation.builders.PathSelectors; | |
import springfox.documentation.builders.RequestHandlerSelectors; | |
import springfox.documentation.service.ApiInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Add a measurement | |
In order to have source information to examine later | |
I want to be able to capture a measurement of several metrics at a specific time | |
Scenario: Add a measurement with valid (numeric) values | |
# POST /measurements | |
When I submit a new measurement as follows: | |
| timestamp | temperature | dewPoint | precipitation | | |
| "2015-09-01T16:00:00.000Z" | 27.1 | 16.7 | 0 | | |
Then the response has a status code of 201 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample build file | |
# @author Suren Konathala | |
# ----- | |
image: node:8 | |
pipelines: | |
default: | |
- step: | |
caches: | |
- node |
NewerOlder