DatabaseInfo { public void clearSensitiveInfo() { this.name = null; this.user = null; this.password = null; this.url = null; this.databaseVersion = null; } DatabaseInfo(); void clearSensitiveInfo(); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getName(); void setName( String name ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getUser(); void setUser( String user ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getDatabaseVersion(); void setDatabaseVersion( String databaseVersion ); String getPassword(); void setPassword( String password ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) String getUrl(); void setUrl( String url ); @JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) boolean isSpatialSupport(); void setSpatialSupport( boolean spatialSupport ); @Nonnull DatabaseInfo instance(); @Override String toString();  }
@Test public void clearSensitiveInfo() { databaseInfo.clearSensitiveInfo(); Assert.assertNull( databaseInfo.getName() ); Assert.assertNull( databaseInfo.getUser() ); Assert.assertNull( databaseInfo.getUrl() ); Assert.assertNull( databaseInfo.getPassword() ); Assert.assertNull( databaseInfo.getDatabaseVersion() ); Assert.assertTrue( databaseInfo.isSpatialSupport() ); }