Example usage for com.liferay.portal.kernel.util Props get

List of usage examples for com.liferay.portal.kernel.util Props get

Introduction

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

Prototype

public String get(String key);

Source Link

Usage

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

License:Open Source License

@Before
public void setUp() {
    _props = PropsUtil.getProps();//from ww w.  ja  v  a2  s  . c om

    Props props = mock(Props.class);

    PropsUtil.setProps(props);

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

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