/** * Test that we can bind a file parameter to a string and have it work. * * @throws InjectionException if there is an (unexpected) injection failure. */ @Test @Ignore("this test is no longer effective") @SuppressWarnings("unchecked") public void testSetFile() throws InjectionException { LenskitConfiguration config = new LenskitConfiguration(); config.clearRoots(); // config.bind(EventFormat.class).to(Formats.ml100kFormat()); RecommenderGraphBuilder rgb = new RecommenderGraphBuilder(); rgb.addConfiguration(config); try (Injector inj = new StaticInjector(rgb.buildGraph())) { // File f = inj.getInstance(AnnotationBuilder.of(EventFile.class).build(), File.class); // assertThat(f.getName(), equalTo("ratings.foodat")); } } }