mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
- Fix unit tests ...
This commit is contained in:
parent
6582f073bd
commit
a82439975d
@ -307,7 +307,7 @@
|
|||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<driver>org.hsqldb.jdbc.JDBCDriver</driver>
|
<driver>org.hsqldb.jdbc.JDBCDriver</driver>
|
||||||
<url>jdbc:hsqldb:file:${basedir}/target/db/wisemapping</url>
|
<url>jdbc:hsqldb:file:${project.basedir}/target/db/wisemapping</url>
|
||||||
<username>sa</username>
|
<username>sa</username>
|
||||||
<!--all executions are ignored if -Dmaven.test.skipDB=true
|
<!--all executions are ignored if -Dmaven.test.skipDB=true
|
||||||
Use this flag if you want to reuse an already created HSQL database instance
|
Use this flag if you want to reuse an already created HSQL database instance
|
||||||
@ -339,7 +339,7 @@
|
|||||||
<onError>continue</onError>
|
<onError>continue</onError>
|
||||||
<orderFile>ascending</orderFile>
|
<orderFile>ascending</orderFile>
|
||||||
<fileset>
|
<fileset>
|
||||||
<basedir>${basedir}</basedir>
|
<basedir>${project.basedir}</basedir>
|
||||||
<includes>
|
<includes>
|
||||||
<include>src/test/sql/hsql/drop-schemas.sql</include>
|
<include>src/test/sql/hsql/drop-schemas.sql</include>
|
||||||
</includes>
|
</includes>
|
||||||
@ -356,7 +356,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<orderFile>ascending</orderFile>
|
<orderFile>ascending</orderFile>
|
||||||
<fileset>
|
<fileset>
|
||||||
<basedir>${basedir}</basedir>
|
<basedir>${project.basedir}</basedir>
|
||||||
<includes>
|
<includes>
|
||||||
<include>src/test/sql/hsql/create-schemas.sql</include>
|
<include>src/test/sql/hsql/create-schemas.sql</include>
|
||||||
</includes>
|
</includes>
|
||||||
@ -372,7 +372,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<orderFile>ascending</orderFile>
|
<orderFile>ascending</orderFile>
|
||||||
<fileset>
|
<fileset>
|
||||||
<basedir>${basedir}</basedir>
|
<basedir>${project.basedir}</basedir>
|
||||||
<includes>
|
<includes>
|
||||||
<include>src/test/sql/hsql/test-data.sql</include>
|
<include>src/test/sql/hsql/test-data.sql</include>
|
||||||
</includes>
|
</includes>
|
||||||
@ -461,13 +461,17 @@
|
|||||||
<war>${project.build.directory}/wisemapping.war</war>
|
<war>${project.build.directory}/wisemapping.war</war>
|
||||||
<reload>automatic</reload>
|
<reload>automatic</reload>
|
||||||
<webAppConfig>
|
<webAppConfig>
|
||||||
<overrideDescriptor>webdefault.xml</overrideDescriptor>
|
<overrideDescriptor>${project.basedir}/webdefault.xml</overrideDescriptor>
|
||||||
</webAppConfig>
|
</webAppConfig>
|
||||||
<systemProperties>
|
<systemProperties>
|
||||||
<systemProperty>
|
<systemProperty>
|
||||||
<name>org.mortbay.util.FileResource.checkAliases</name>
|
<name>org.mortbay.util.FileResource.checkAliases</name>
|
||||||
<value>false</value>
|
<value>false</value>
|
||||||
</systemProperty>
|
</systemProperty>
|
||||||
|
<systemProperty>
|
||||||
|
<name>org.mortbay.util.FileResource.checkAliases</name>
|
||||||
|
<value>false</value>
|
||||||
|
</systemProperty>
|
||||||
</systemProperties>
|
</systemProperties>
|
||||||
<!--<scanIntervalSeconds>10</scanIntervalSeconds>-->
|
<!--<scanIntervalSeconds>10</scanIntervalSeconds>-->
|
||||||
</configuration>
|
</configuration>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
package com.wisemapping.model;
|
package com.wisemapping.model;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
@ -141,11 +141,12 @@ public class User
|
|||||||
this.username = username;
|
this.username = username;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Nullable
|
||||||
public String getLocale() {
|
public String getLocale() {
|
||||||
return locale;
|
return locale;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLocale(@NotNull String locale) {
|
public void setLocale(@Nullable String locale) {
|
||||||
this.locale = locale;
|
this.locale = locale;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ public class AdminController extends BaseController {
|
|||||||
userService.changePassword(user);
|
userService.changePassword(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(method = RequestMethod.DELETE)
|
@RequestMapping(method = RequestMethod.DELETE,value = "admin/users/{id}")
|
||||||
@ResponseStatus(value = HttpStatus.NO_CONTENT)
|
@ResponseStatus(value = HttpStatus.NO_CONTENT)
|
||||||
public void getUserByEmail(@PathVariable long id) throws IOException, WiseMappingException {
|
public void getUserByEmail(@PathVariable long id) throws IOException, WiseMappingException {
|
||||||
final User user = userService.getUserBy(id);
|
final User user = userService.getUserBy(id);
|
||||||
|
@ -78,7 +78,7 @@ public class RestUser {
|
|||||||
return user.getId();
|
return user.getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(int id) {
|
public void setId(long id) {
|
||||||
user.setId(id);
|
user.setId(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
##################################################################################
|
##################################################################################
|
||||||
# Database Configuration
|
# Database Configuration
|
||||||
##################################################################################
|
##################################################################################
|
||||||
@ -16,7 +17,6 @@ database.hibernate.dialect=org.hibernate.dialect.HSQLDialect
|
|||||||
database.username=sa
|
database.username=sa
|
||||||
database.password=
|
database.password=
|
||||||
|
|
||||||
|
|
||||||
##################################################################################
|
##################################################################################
|
||||||
# Mail configuration. Must be configured to enable user registration confirmation.
|
# Mail configuration. Must be configured to enable user registration confirmation.
|
||||||
##################################################################################
|
##################################################################################
|
||||||
@ -57,7 +57,7 @@ mail.serverSendEmail=root@localhost
|
|||||||
# Optional: Support account that the users could use to contact you. This address will appear in emails and in some places in the site.
|
# Optional: Support account that the users could use to contact you. This address will appear in emails and in some places in the site.
|
||||||
mail.supportEmail=root@localhost
|
mail.supportEmail=root@localhost
|
||||||
|
|
||||||
# Optional: Unexpected error will be reported to this address.
|
# Optional: Unexpected errors will be reported to this address.
|
||||||
mail.errorReporterEmail=
|
mail.errorReporterEmail=
|
||||||
|
|
||||||
##################################################################################
|
##################################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user