Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated dependencies and allow support for JDK 17 source #1372

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
a481dd3
Updated dependencies and allow support for JDK 16 source
tazmaniax Jun 27, 2021
5954cf0
Added comments to tests that are causing problems
tazmaniax Jun 27, 2021
3b7610b
Refresh with latest 3rd dependency versions
tazmaniax Sep 19, 2021
d23ab02
Updated 3rd party library dependencies
tazmaniax Oct 23, 2021
66c62e1
Fixed URLDecoder reference
tazmaniax Oct 23, 2021
fc74da8
Updated module play-guice dependency to 1.11.1 for Guice 5.x support
tazmaniax Oct 23, 2021
632c2a6
Update dependencies
tazmaniax Nov 4, 2021
c3f5fca
Update Byte Buddy and Joda Time dependencies
tazmaniax Nov 26, 2021
7f07b59
WIP: Temporarily commented out failing tests in errors and routing
tazmaniax Nov 26, 2021
0f2b6bd
Update dependencies
tazmaniax Dec 3, 2021
35b2bd1
Updated Eclipse JDT Core to v3.28 that enables JDK 17 source
tazmaniax Dec 10, 2021
b145aaf
Merge branch 'master' into dependency_update_20210627_JDK_16
tazmaniax Dec 10, 2021
fe25b74
Fix compiler mapping foe JDK 17
tazmaniax Dec 10, 2021
1b91954
1166: Update documentation
tazmaniax Dec 10, 2021
78d4d30
Updates dependencies
tazmaniax Dec 18, 2021
01d6780
Update dependencies
tazmaniax Dec 27, 2021
98b8035
Updated dependencies
tazmaniax Jan 19, 2022
502c9dd
Removed duplicate entry
tazmaniax Jan 23, 2022
c151672
Replace Log4j with reload4j
tazmaniax Jan 26, 2022
e19d876
Reverted change to the groovy compiler compiled path config
tazmaniax Jan 26, 2022
1138ef5
Merge branch 'master' into dependency_update_20210627_JDK_16
tazmaniax Jan 28, 2022
f231d6f
Revert "Replace Log4j with reload4j"
tazmaniax Jan 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/manual/configuration.textile
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ Java source level, which overrides the @java.version@ system property. For examp

bc. java.source=1.8

Values: @1.7@ (No longer supported since 1.5.0), @1.8@, @9@, @10@.
Values: @1.7@ (No longer supported since 1.5.0), @1.8@, @9@, @10@, @11@, @12@, @13@, @14@, @15@, @17@.

Default: @1.8@

Expand Down
73 changes: 36 additions & 37 deletions framework/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ transitiveDependencies: false
# This core dependencies are required by Play framework
require: &allDependencies
- antlr 2.7.7
- com.mchange -> c3p0 0.9.5.2
- com.zaxxer -> HikariCP 3.4.5
- org.ow2.asm -> asm 9.0
- org.ow2.asm -> asm-commons 9.0
- org.ow2.asm -> asm-util 9.0
- org.ow2.asm -> asm-tree 9.0
- org.ow2.asm -> asm-analysis 9.0
- com.mchange -> c3p0 0.9.5.5
- com.zaxxer -> HikariCP 5.0.1
- org.ow2.asm -> asm 9.2
- org.ow2.asm -> asm-commons 9.2
- org.ow2.asm -> asm-util 9.2
- org.ow2.asm -> asm-tree 9.2
- org.ow2.asm -> asm-analysis 9.2
- cglib -> cglib 3.3.0
- com.google.code.gson -> gson 2.8.6
- com.jamonapi -> jamon 2.81
- com.google.code.gson -> gson 2.8.9
- com.jamonapi -> jamon 2.82
- com.ning -> async-http-client 1.9.40
- commons-beanutils 1.9.2
- commons-codec 1.10
- commons-beanutils 1.9.4
- commons-codec 1.15
- org.apache.commons -> commons-email 1.5
- commons-fileupload 1.3.2
- commons-io 2.5
- commons-fileupload 1.4
- commons-io 2.11.0
- com.google.code.maven-play-plugin.org.apache.commons -> commons-javaflow 1590792
- commons-lang 2.6
- commons-logging 1.2
Expand All @@ -34,47 +34,46 @@ require: &allDependencies
- javax.inject 1.0
- javax.validation -> validation-api 1.1.0.Final
- jaxen 1.2.0
- joda-time 2.10
- joda-time 2.10.13
- org.hamcrest -> hamcrest-all 1.3
- junit 4.12
- junit 4.13.2
- jregex 1.2_01
- log4j 1.2.17
- net.sf.ehcache -> ehcache 2.10.6
- net.sf.ehcache -> ehcache 2.10.9.2
- net.sf.ezmorph -> ezmorph 1.0.6
- net.sf.jsr107cache -> jsr107cache 1.1
- net.sf.oval -> oval 1.86
- mysql -> mysql-connector-java 8.0.22
- net.sf.oval -> oval 1.90
- mysql -> mysql-connector-java 8.0.28
- oauth.signpost -> signpost-core 1.2.1.2
- org.apache.geronimo.specs -> geronimo-servlet_2.5_spec 1.2
- org.apache.ivy -> ivy 2.4.0
- org.bouncycastle -> bcprov-jdk15on 1.61
- org.bouncycastle -> bcpkix-jdk15on 1.61
- org.codehaus.groovy -> groovy 3.0.6
- org.codehaus.groovy -> groovy-xml 3.0.6
- org.eclipse.jdt -> org.eclipse.jdt.core 3.23.0
- org.apache.ivy -> ivy 2.5.0
- org.bouncycastle -> bcprov-jdk15on 1.70
- org.bouncycastle -> bcpkix-jdk15on 1.70
- org.codehaus.groovy -> groovy 3.0.9
- org.codehaus.groovy -> groovy-xml 3.0.9
- org.eclipse.jdt -> org.eclipse.jdt.core 3.28.0
- org.hibernate -> hibernate-core 5.4.30.Final.patched
- net.bytebuddy -> byte-buddy 1.10.21
- net.bytebuddy -> byte-buddy 1.12.7
- javax.persistence -> javax.persistence-api 2.2
- org.hibernate.common -> hibernate-commons-annotations 5.1.2.Final
- org.hibernate -> hibernate-validator 5.4.1.Final
- org.jboss -> jandex 2.2.3.Final
- org.jboss.logging -> jboss-logging 3.4.1.Final
- org.jboss -> jandex 2.4.2.Final
- org.jboss.logging -> jboss-logging 3.4.3.Final
- org.jboss.spec.javax.transaction -> jboss-transaction-api_1.2_spec 1.1.1.Final
- javax.persistence -> javax.persistence-api 2.2
- javax.xml.bind -> jaxb-api 2.3.1
- org.glassfish.jaxb -> jaxb-runtime 2.3.1
- org.glassfish.jaxb -> jaxb-runtime 2.3.5
- com.fasterxml -> classmate 1.5.1
- org.hibernate -> hibernate-c3p0 5.4.30.Final
- org.hibernate -> hibernate-ehcache 5.4.30.Final
- com.mchange -> mchange-commons-java 0.2.12
- org.javassist -> javassist 3.27.0-GA
- com.mchange -> mchange-commons-java 0.2.20
- org.javassist -> javassist 3.28.0-GA
- io.netty -> netty 3.10.6.Final
- org.postgresql -> postgresql 42.2.18
- org.slf4j -> slf4j-api 1.7.22
- org.slf4j -> slf4j-log4j12 1.7.22
- org.yaml -> snakeyaml 1.17
- net.spy -> spymemcached 2.12.1
- com.thoughtworks.xstream -> xstream 1.4.9
- org.postgresql -> postgresql 42.3.1
- org.slf4j -> slf4j-api 1.7.33
- org.slf4j -> slf4j-log4j12 1.7.33
- org.yaml -> snakeyaml 1.30
- net.spy -> spymemcached 2.12.3
- com.thoughtworks.xstream -> xstream 1.4.18
- xmlpull 1.1.3.4d_b4_min

# Default repositories, used for all projects
Expand Down
Binary file removed framework/lib/HikariCP-3.4.5.jar
Binary file not shown.
Binary file added framework/lib/HikariCP-5.0.1.jar
Binary file not shown.
Binary file removed framework/lib/asm-9.0.jar
Binary file not shown.
Binary file added framework/lib/asm-9.2.jar
Binary file not shown.
Binary file removed framework/lib/asm-analysis-9.0.jar
Binary file not shown.
Binary file added framework/lib/asm-analysis-9.2.jar
Binary file not shown.
Binary file removed framework/lib/asm-commons-9.0.jar
Binary file not shown.
Binary file added framework/lib/asm-commons-9.2.jar
Binary file not shown.
Binary file not shown.
Binary file removed framework/lib/asm-util-9.0.jar
Binary file not shown.
Binary file added framework/lib/asm-util-9.2.jar
Binary file not shown.
Binary file removed framework/lib/bcpkix-jdk15on-1.61.jar
Binary file not shown.
Binary file added framework/lib/bcpkix-jdk15on-1.70.jar
Binary file not shown.
Binary file removed framework/lib/bcprov-jdk15on-1.61.jar
Binary file not shown.
Binary file added framework/lib/bcprov-jdk15on-1.70.jar
Binary file not shown.
Binary file removed framework/lib/byte-buddy-1.10.21.jar
Binary file not shown.
Binary file added framework/lib/byte-buddy-1.12.7.jar
Binary file not shown.
Binary file removed framework/lib/c3p0-0.9.5.2.jar
Binary file not shown.
Binary file added framework/lib/c3p0-0.9.5.5.jar
Binary file not shown.
Binary file removed framework/lib/classmate-1.3.4.jar
Binary file not shown.
Binary file removed framework/lib/commons-beanutils-1.9.2.jar
Binary file not shown.
Binary file added framework/lib/commons-beanutils-1.9.4.jar
Binary file not shown.
Binary file removed framework/lib/commons-codec-1.10.jar
Binary file not shown.
Binary file added framework/lib/commons-codec-1.15.jar
Binary file not shown.
Binary file removed framework/lib/commons-fileupload-1.3.2.jar
Binary file not shown.
Binary file added framework/lib/commons-fileupload-1.4.jar
Binary file not shown.
Binary file added framework/lib/commons-io-2.11.0.jar
Binary file not shown.
Binary file removed framework/lib/commons-io-2.5.jar
Binary file not shown.
Binary file removed framework/lib/dom4j-1.6.1.jar
Binary file not shown.
Binary file not shown.
Binary file removed framework/lib/ehcache-core-2.6.11.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed framework/lib/gson-2.8.6.jar
Binary file not shown.
Binary file added framework/lib/gson-2.8.9.jar
Binary file not shown.
Binary file removed framework/lib/hibernate-c3p0-5.4.1.Final.jar
Binary file not shown.
Binary file removed framework/lib/hibernate-ehcache-5.4.1.Final.jar
Binary file not shown.
Binary file removed framework/lib/ivy-2.4.0.jar
Binary file not shown.
Binary file added framework/lib/ivy-2.5.0.jar
Binary file not shown.
Binary file added framework/lib/jamon-2.82.jar
Binary file not shown.
Binary file removed framework/lib/jandex-2.2.3.Final.jar
Binary file not shown.
Binary file added framework/lib/jandex-2.4.2.Final.jar
Binary file not shown.
Binary file not shown.
Binary file removed framework/lib/jaxb-runtime-2.3.1.jar
Binary file not shown.
Binary file added framework/lib/jaxb-runtime-2.3.5.jar
Binary file not shown.
Binary file removed framework/lib/jboss-logging-3.3.0.Final.jar
Binary file not shown.
Binary file removed framework/lib/jboss-logging-3.4.1.Final.jar
Binary file not shown.
Binary file added framework/lib/jboss-logging-3.4.3.Final.jar
Binary file not shown.
Binary file not shown.
Binary file removed framework/lib/junit-4.12.jar
Binary file not shown.
Binary file added framework/lib/junit-4.13.2.jar
Binary file not shown.
Binary file removed framework/lib/mchange-commons-java-0.2.12.jar
Binary file not shown.
Binary file added framework/lib/mchange-commons-java-0.2.20.jar
Binary file not shown.
Binary file removed framework/lib/mysql-connector-java-8.0.22.jar
Binary file not shown.
Binary file added framework/lib/mysql-connector-java-8.0.28.jar
Binary file not shown.
Binary file removed framework/lib/org.eclipse.jdt.core-3.23.0.jar
Binary file not shown.
Binary file added framework/lib/org.eclipse.jdt.core-3.28.0.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed framework/lib/slf4j-api-1.7.22.jar
Binary file not shown.
Binary file added framework/lib/slf4j-api-1.7.33.jar
Binary file not shown.
Binary file removed framework/lib/slf4j-log4j12-1.7.22.jar
Binary file not shown.
Binary file added framework/lib/slf4j-log4j12-1.7.33.jar
Binary file not shown.
Binary file removed framework/lib/snakeyaml-1.17.jar
Binary file not shown.
Binary file added framework/lib/snakeyaml-1.30.jar
Binary file not shown.
Binary file not shown.
Binary file added framework/lib/xstream-1.4.18.jar
Binary file not shown.
Binary file removed framework/lib/xstream-1.4.9.jar
Binary file not shown.
3 changes: 3 additions & 0 deletions framework/src/play/classloading/ApplicationCompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public class ApplicationCompiler {
compatibleJavaVersions.put("12", CompilerOptions.VERSION_12);
compatibleJavaVersions.put("13", CompilerOptions.VERSION_13);
compatibleJavaVersions.put("14", CompilerOptions.VERSION_14);
compatibleJavaVersions.put("15", CompilerOptions.VERSION_15);
compatibleJavaVersions.put("16", CompilerOptions.VERSION_16);
compatibleJavaVersions.put("17", CompilerOptions.VERSION_17);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion framework/src/play/templates/GroovyTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public void call(GroovyClass gclass) {
groovyClassesForThisTemplate.add(gclass);
}
});

compilationUnit.compile();
// ouf

Expand Down
2 changes: 1 addition & 1 deletion resources/application-skel/conf/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ date.format=yyyy-MM-dd
# Define which port is used by JPDA when application is in debug mode (default is set to 8000)
# jpda.port=8000
#
# Java source level => 1.8
# Java source level => 1.8, 9, 10, 11, 12, 13, 14, 15, 17
# java.source=1.8

# Log level
Expand Down
21 changes: 17 additions & 4 deletions samples-and-tests/just-test-cases/app/controllers/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,18 @@ public static void some1() {

@Youhou
public static void some2() {
renderText(Invoker.InvocationContext.current());
String value = Invoker.InvocationContext.current().toString();
Logger.info("InvocationContext is '%s'", value);
renderText(value);
}

@Youhou
public static void some3() throws Exception {
JobWithContext job = new JobWithContext();
Future<String> future = job.now();
renderText(future.get());
String value = future.get();
Logger.info("InvocationContext is '%s'", value);
renderText(value);
}


Expand Down Expand Up @@ -159,8 +163,17 @@ public static void generateBookWithDateLink(long timeLong) {

public static void book(Date at) {
java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("dd/MM/yy");
df.setTimeZone(TimeZone.getTimeZone("Etc/UTC"));
renderText("Booked at %s !!", df.format(at));

// The below statement to set the timezone to UTC breaks the test if the default
// JVM time zone sees this date in daylight savings.
// e.g. for London/Europe the "at" is 5/4/61 00:00:00 BST and when formatted to UTC is
// adjusted back an hour to 4/4/61 23:00:00
// df.setTimeZone(TimeZone.getTimeZone("Etc/UTC"));

String value = String.format("Booked at %s !!", df.format(at));
Logger.info("Date '%s' formatted to '%s' with system default TimeZone '%s'", at, value, TimeZone.getDefault());

renderText(value);
}

public static void escapeData() {
Expand Down
62 changes: 31 additions & 31 deletions samples-and-tests/just-test-cases/conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ GET /re/{<[a-z]+>re} Application.ok
GET /re/{<[0-9]{5}>re} Application.ok
GET /re/{<[A-Z]{2,4}>re} Application.ok
GET /re/{<[0-9]%2F[0-9]>re}/rev Application.revRoute
GET /re/{<[a-z0-9]+%2F[a-z,0-9]+>re}/rev Application.revRoute
GET /re/{<[A-Za-z0-9\/%]+>re}/rev Application.revRoute
GET /re/urlWithArgumentInRoutesNoSpace Application.ressourceWithoutSpecialCharacters(appId:'param1',verId:'param2')
GET /re/{<[a-z0-9]+%2F[a-z,0-9]+>re}/rev Application.revRoute
GET /re/{<[A-Za-z0-9\/%]+>re}/rev Application.revRoute
GET /re/urlWithArgumentInRoutesNoSpace Application.ressourceWithoutSpecialCharacters(appId:'param1',verId:'param2')
GET /re/urlWithArgumentInRoutesWithSpace Application.ressourceWithoutSpecialCharacters( appId:'param1', verId:'param2' )
GET /re/{appId}/{verId} Application.ressourceWithoutSpecialCharacters
GET /re/{<[a-z0-9]+[\/]??(%2F)??[a-z,0-9]+>appId}/{<[a-z0-9\/%F]+>verId} Application.ressourceWithSpecialCharacters
GET /re/{appId}/{verId} Application.ressourceWithoutSpecialCharacters
GET /re/{<[a-z0-9]+[\/]??(%2F)??[a-z,0-9]+>appId}/{<[a-z0-9\/%F]+>verId} Application.ressourceWithSpecialCharacters

GET /{lucky}/doIt Application.showIt
GET /withQueryParam Application.withQueryParam
Expand Down Expand Up @@ -50,44 +50,44 @@ POST /needAuthenticity WithAuthenticity.needAuthenticity
GET /needAuthenticity WithAuthenticity.needAuthenticity

# Import the default CRUD routes
* /admin module:crud
* /admin module:crud

# Map static resources from the /app/public folder to the /public path
GET /public/ staticDir:public
GET static.foo.com/assets/ staticDir:public2/assets1
GET static2.foo.com/x staticDir:public2/assets2
GET /public/ staticDir:public
GET static.foo.com/assets/ staticDir:public2/assets1
GET static2.foo.com/x staticDir:public2/assets2

#bug in router.reverse
GET /notmatch/{name}/{action} Application.{action}
GET /index2 Application.index2
GET /xsstest security.XssAttempts.testUrlParam
GET /notmatch/{name}/{action} Application.{action}
GET /index2 Application.index2
GET /xsstest security.XssAttempts.testUrlParam

# Catch all
* /async/{controller}/{action} async.{controller}.{action}
* /sample/{controller}/{action} sample.{controller}.{action}
* /tagDemos/{controller}/{action} tagDemos.{controller}.{action}
* /security/{controller}/{action} security.{controller}.{action}
* /{controller}/{action} {controller}.{action}
* /sample/{controller}/{action} sample.{controller}.{action}
* /tagDemos/{controller}/{action} tagDemos.{controller}.{action}
* /security/{controller}/{action} security.{controller}.{action}
* /{controller}/{action} {controller}.{action}

# Data binding

GET /databinding/showDefaultDateFormat/{date}/? DataBinding.showDefaultDateFormat
GET /databinding/showLocaleDateFormat/{date}/? DataBinding.showLocaleDateFormat
GET /databinding/showDefaultLocaleDateFormat/{date}/? DataBinding.showDefaultLocaleDateFormat
GET /databinding/showDateFormat/{date}/? DataBinding.showDateFormat
GET /databinding/showList/{<.*>mailboxes}/? DataBinding.showList
GET /databinding/showCalendar/{cal}/? DataBinding.showCalendar
GET /databinding/showCalendar2/{cal}/? DataBinding.showCalendar2
GET /databinding/changeLanguage/{lang}/? DataBinding.changeLanguage
GET /databinding/showDefaultDateFormat/{date}/? DataBinding.showDefaultDateFormat
GET /databinding/showLocaleDateFormat/{date}/? DataBinding.showLocaleDateFormat
GET /databinding/showDefaultLocaleDateFormat/{date}/? DataBinding.showDefaultLocaleDateFormat
GET /databinding/showDateFormat/{date}/? DataBinding.showDateFormat
GET /databinding/showList/{<.*>mailboxes}/? DataBinding.showList
GET /databinding/showCalendar/{cal}/? DataBinding.showCalendar
GET /databinding/showCalendar2/{cal}/? DataBinding.showCalendar2
GET /databinding/changeLanguage/{lang}/? DataBinding.changeLanguage


GET /useAwaitViaOtherClass WithContinuations.ControllerWithoutContinuations.useAwaitViaOtherClass
GET /useAwaitViaOtherClass WithContinuations.ControllerWithoutContinuations.useAwaitViaOtherClass

GET /status/ok/ StatusCodes.justOkay
GET /status/not-found/ StatusCodes.rendersNotFound
GET /status/unauthorized/ StatusCodes.rendersUnauthorized
POST /status/job/ StatusCodes.usesContinuation
GET /status/failure/ StatusCodes.throwsException
GET /status/ok/ StatusCodes.justOkay
GET /status/not-found/ StatusCodes.rendersNotFound
GET /status/unauthorized/ StatusCodes.rendersUnauthorized
POST /status/job/ StatusCodes.usesContinuation
GET /status/failure/ StatusCodes.throwsException

# module
* / module:secure
* / module:secure
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class DataBindingUnitTest extends UnitTest {

@Test
public void testByteBinding() throws Exception{
File fileToSend = new File(new URLDecoder().decode(getClass().getResource("/kiki.txt").getFile(), "UTF-8"));
File fileToSend = new File(URLDecoder.decode(getClass().getResource("/kiki.txt").getFile(), "UTF-8"));
assertEquals("b.ba.length=749", WS.url("http://localhost:9003/DataBinding/bindBeanWithByteArray").files(new FileParam(fileToSend, "b.ba")).post().getString());
}

Expand Down
4 changes: 2 additions & 2 deletions samples-and-tests/just-test-cases/test/RestTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void testPost() throws Exception {
JsonObject jsonResponse = new JsonObject();
jsonResponse.addProperty("id", 101);
assertEquals(jsonResponse.toString(), WS.url("http://localhost:9003/ressource/%s", Rest.filterString("名字")).params(params).post().getJson().toString());
File fileToSend = new File(new URLDecoder().decode(getClass().getResource("/kiki.txt").getFile(), "UTF-8"));
File fileToSend = new File(URLDecoder.decode(getClass().getResource("/kiki.txt").getFile(), "UTF-8"));
assertTrue(fileToSend.exists());
assertEquals("POSTED!", WS.url("http://localhost:9003/ressource/file/%s", Rest.filterString("名字")).files(new FileParam(fileToSend, "file")).post().getString());
assertEquals("FILE AND PARAMS POSTED!", WS.url("http://localhost:9003/ressource/fileAndParams/%s", Rest.filterString("名字")).files(new FileParam(fileToSend, "file")).params(params).post().getString());
Expand Down Expand Up @@ -74,7 +74,7 @@ public void testPut() throws Exception {
JsonObject jsonResponse = new JsonObject();
jsonResponse.addProperty("id", 101);
assertEquals(jsonResponse.toString(), WS.url("http://localhost:9003/ressource/%s", Rest.filterString("名字")).params(params).put().getJson().toString());
File fileToSend = new File(new URLDecoder().decode(getClass().getResource("/kiki.txt").getFile(), "UTF-8"));
File fileToSend = new File(URLDecoder.decode(getClass().getResource("/kiki.txt").getFile(), "UTF-8"));
assertTrue(fileToSend.exists());
assertEquals("POSTED!", WS.url("http://localhost:9003/ressource/file/%s", Rest.filterString("名字")).files(new FileParam(fileToSend, "file")).put().getString());
assertEquals("FILE AND PARAMS POSTED!", WS.url("http://localhost:9003/ressource/fileAndParams/%s", Rest.filterString("名字")).files(new FileParam(fileToSend, "file")).params(params).put().getString());
Expand Down
2 changes: 1 addition & 1 deletion samples-and-tests/just-test-cases/test/binding.test.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<!-- Now unbind dates -->
open('/databinding/changeLanguage/en/')
<!-- Since it is unclear which locale is current when rendering this selenium page,
we cannot rely on the auto-date-unbinding when generating the url with patams here.
we cannot rely on the auto-date-unbinding when generating the url with params here.
To test the same stuff´, we therefor request a page from the server (which has the correct lang, en)
which generates the link we need, then we click it.
We end up testing the exact same stuff, only under known locale conditions. -->
Expand Down
Loading