Search in sources :

Example 1 with PasswordType

use of com.qcadoo.model.internal.types.PasswordType in project qcadoo by qcadoo.

the class FieldTypeFactoryTest method shouldReturnPasswordType.

@Test
public void shouldReturnPasswordType() throws Exception {
    // when
    PasswordEncoder passwordEncoder = mock(PasswordEncoder.class);
    FieldType fieldType = new PasswordType(passwordEncoder);
    // then
    assertEquals(String.class, fieldType.getType());
}
Also used : PasswordEncoder(org.springframework.security.authentication.encoding.PasswordEncoder) PasswordType(com.qcadoo.model.internal.types.PasswordType) FieldType(com.qcadoo.model.api.types.FieldType) DataAccessTest(com.qcadoo.model.internal.DataAccessTest) Test(org.junit.Test)

Aggregations

FieldType (com.qcadoo.model.api.types.FieldType)1 DataAccessTest (com.qcadoo.model.internal.DataAccessTest)1 PasswordType (com.qcadoo.model.internal.types.PasswordType)1 Test (org.junit.Test)1 PasswordEncoder (org.springframework.security.authentication.encoding.PasswordEncoder)1