loadRequireFullAccess(configuration)
loadFcpInterfaceActive(configuration)
loadFcpFullAccessRequired(configuration)
+ loadStrictFiltering(configuration)
}
private fun loadInsertionDelay(configuration: Configuration) {
preferences.newFcpFullAccessRequired = fullAccessRequiredInteger?.let { FullAccessRequired.values()[it] }
}
+ private fun loadStrictFiltering(configuration: Configuration) {
+ preferences.newStrictFiltering = configuration.getBooleanValue("Option/StrictFiltering").getValue(null)
+ }
+
}
setupBooleanValue("RequireFullAccess", true)
setupBooleanValue("ActivateFcpInterface", true)
setupIntValue("FcpFullAccessRequired", 1)
+ setupBooleanValue("StrictFiltering", true)
}
private fun setupIntValue(optionName: String, value: Int) {
assertThat(preferences.requireFullAccess, equalTo(true))
assertThat(preferences.fcpInterfaceActive, equalTo(true))
assertThat(preferences.fcpFullAccessRequired, equalTo(FullAccessRequired.WRITING))
+ assertThat(preferences.strictFiltering, equalTo(true))
}
@Test