Example #1
0
        public virtual void test_ofPath()
        {
            Path rootPath = (new File(EXAMPLE_MARKET_DATA_DIRECTORY_ROOT)).toPath();
            ExampleMarketDataBuilder builder = ExampleMarketDataBuilder.ofPath(rootPath);

            assertBuilder(builder);
        }
Example #2
0
        public virtual void test_ofPath_with_spaces()
        {
            Path rootPath = (new File(TEST_SPACES_DIRECTORY_ROOT)).toPath();
            ExampleMarketDataBuilder builder = ExampleMarketDataBuilder.ofPath(rootPath);

            ImmutableMarketData snapshot = builder.buildSnapshot(LocalDate.of(2015, 1, 1));

            assertEquals(snapshot.TimeSeries.size(), 1);
        }