Example usage for com.liferay.portal.kernel.util PropsUtil getProps

List of usage examples for com.liferay.portal.kernel.util PropsUtil getProps

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util PropsUtil getProps.

Prototype

public static Props getProps() 

Source Link

Usage

From source file:com.liferay.petra.encryptor.EncryptorTest.java

License:Open Source License

@Before
public void setUp() {
    _props = PropsUtil.getProps();

    Props props = mock(Props.class);

    PropsUtil.setProps(props);//from w w  w. j a va  2 s  .  co m

    when(props.get(Mockito.eq(PropsKeys.COMPANY_ENCRYPTION_ALGORITHM))).thenReturn("AES");

    when(props.get(Mockito.eq(PropsKeys.COMPANY_ENCRYPTION_KEY_SIZE))).thenReturn("128");
}