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
URL url = new URL(urlTarget); | |
HttpURLConnection connection; | |
method = "GET" // POST, PUT, ... | |
data = "" // for GET, otherwise e..g JSON | |
connection.setDoOutput(true); | |
connection.setDoInput(true); | |
connection.setRequestMethod(method); | |
connection.setRequestProperty("Content-Length", "" + Integer.toString(data.getBytes().length)); |
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 testsupport; | |
import org.concordion.api.ResultSummary; | |
import org.concordion.internal.FixtureRunner; | |
import org.junit.runner.Description; | |
import org.junit.runners.model.FrameworkMethod; | |
import org.junit.runners.model.InitializationError; | |
import org.junit.runners.model.Statement; | |
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
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
<mvc:annotation-driven conversion-service="conversionService" ignoreDefaultModelOnRedirect="true"> | |
<mvc:argument-resolvers> | |
<bean class="org.springframework.data.web.PageableArgumentResolver"/> | |
</mvc:argument-resolvers> | |
</mvc:annotation-driven> | |
<bean class="org.springframework.data.repository.support.DomainClassConverter"> | |
<constructor-arg ref="conversionService"/> | |
</bean> |