This file contains hidden or 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 hello; | |
| public class HelloWorld { | |
| public static void main(String[] args) { | |
| Greeter greeter = new Greeter(); | |
| System.out.println(greeter.sayHello()); | |
| } | |
| } |
This file contains hidden or 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
| ... | |
| export GRADLE_HOME=~/Path/to/your/gradle/folder | |
| export PATH=$PATH:$GRADLE_HOME/bin | |
This file contains hidden or 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 java.net.HttpURLConnection; | |
| import java.net.URL; | |
| /** | |
| * Created by ivanursul on 5/29/15. | |
| */ | |
| public class UrlRedirectInterceptor { | |
| public String getRedirectedUrl(String url) throws Exception { | |
| HttpURLConnection con = (HttpURLConnection) new URL(url).openConnection(); |
This file contains hidden or 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
| public class Order { | |
| private Long id; | |
| private List<OrderProduct> products; | |
| } | |
| public class OrderProduct { | |
| private Long id; | |
This file contains hidden or 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
| <?xml version="1.0" encoding="utf-8"?> | |
| <!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 4.0//EN" | |
| "http://www.tuckey.org/res/dtds/urlrewrite4.0.dtd"> | |
| <urlrewrite> | |
| <rule> | |
| <from>/api/content/(.*)</from> | |
| <to>/api/content?contentPath=/$1</to> | |
| </rule> | |
| <rule> |
This file contains hidden or 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 org.ivanursul.investigration.rule; | |
| import org.junit.rules.TestRule; | |
| import org.junit.runner.Description; | |
| import org.junit.runners.model.Statement; | |
| public class LoggingRule implements TestRule { | |
| private String name; |
This file contains hidden or 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 org.ivanursul.investigration.rule; | |
| import static org.junit.Assert.assertTrue; | |
| import org.junit.ClassRule; | |
| import org.junit.Rule; | |
| import org.junit.Test; | |
| public class DefaultTest { |
This file contains hidden or 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 org.ivanursul.investigration.rule; | |
| import static org.junit.Assert.assertTrue; | |
| import org.junit.ClassRule; | |
| import org.junit.Rule; | |
| import org.junit.Test; | |
| import org.junit.rules.ExpectedException; | |
| public class DefaultTest { |
This file contains hidden or 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
| 86094 verbose cache add name=undefined spec="sum-up@^1.0.1" args=["sum-up@^1.0.1",null] | |
| 86095 verbose parsed url { protocol: null, | |
| 86095 verbose parsed url slashes: null, | |
| 86095 verbose parsed url auth: null, | |
| 86095 verbose parsed url host: null, | |
| 86095 verbose parsed url port: null, | |
| 86095 verbose parsed url hostname: null, | |
| 86095 verbose parsed url hash: null, | |
| 86095 verbose parsed url search: null, | |
| 86095 verbose parsed url query: null, |
This file contains hidden or 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 ua.edboservice; | |
| import javax.xml.bind.annotation.XmlAccessType; | |
| import javax.xml.bind.annotation.XmlAccessorType; | |
| import javax.xml.bind.annotation.XmlElement; | |
| import javax.xml.bind.annotation.XmlRootElement; | |
| import javax.xml.bind.annotation.XmlType; | |