Examples of StaticMessageSource


Examples of org.springframework.context.support.StaticMessageSource

    assertThat(Arrays.asList(value.getArguments()), is(equalTo(Arrays.<Object> asList("y", "z"))));
  }

  @Test
  public void shouldUsePrefixCodesWhenNesting() throws Exception {
    MessageSourceMap map = new TestMessageSourceMap(new StaticMessageSource(), new String[] { "a.", "b.", "c." });
    MessageSourceResolvable value = (MessageSourceResolvable) map.get("x", "y", "z");
    assertThat(Arrays.asList(value.getCodes()), is(equalTo(Arrays.asList("a.x", "b.x", "c.x"))));
    assertThat(Arrays.asList(value.getArguments()), is(equalTo(Arrays.<Object> asList("y", "z"))));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.