Ejemplo n.º 1
0
  public void testUnmarshalReaderQuietly()
      throws MarshalException, ValidationException, FileNotFoundException, IOException {
    CastorUtils.unmarshal(
        Userinfo.class, ConfigurationTestUtils.getInputStreamForConfigFile("users.xml"));

    /*
     * Ensure that nothing was logged.
     * In particular, we want to make sure that we don't see this message:
     * 2008-07-28 16:04:53,260 DEBUG [main] org.exolab.castor.xml.Unmarshaller: *static* unmarshal method called, this will ignore any mapping files or changes made to an Unmarshaller instance.
     */
    MockLogAppender.assertNoLogging();
  }