//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldReportStoreSizes() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: internal virtual void ShouldReportStoreSizes() { UdcInformationCollector collector = new DefaultUdcInformationCollector(Config.defaults(), _dataSourceManager, _usageData); when(_fileSystem.getFileSize(Mockito.any())).thenReturn(152L); IDictionary <string, string> udcParams = collector.UdcParams; assertThat(udcParams["storesize"], @is("152")); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldIncludeDistributionForLinux() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldIncludeDistributionForLinux() { if (!SystemUtils.IS_OS_LINUX) { return; } _graphdb = CreateDatabase(_config); AssertGotSuccessWithRetry(_isGreaterThanZero); assertEquals(DefaultUdcInformationCollector.SearchForPackageSystems(), _handler.QueryMap["dist"]); }
public override void Start() { if (!_config.get(UdcSettings.udc_enabled)) { return; } int firstDelay = _config.get(UdcSettings.first_delay); int interval = _config.get(UdcSettings.interval); HostnamePort hostAddress = _config.get(UdcSettings.udc_host); UdcInformationCollector collector = new DefaultUdcInformationCollector(_config, _dataSourceManager, _usageData); UdcTimerTask task = new UdcTimerTask(hostAddress, collector); _timer.scheduleAtFixedRate(task, firstDelay, interval); }
public ListenerAnonymousInnerClass(DefaultUdcInformationCollector outerInstance) { this.outerInstance = outerInstance; }
private void InitializeInstanceFields() { _collector = new DefaultUdcInformationCollector(Config.defaults(), _dataSourceManager, _usageData); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldNotFilterReleaseBuildNumbers() public virtual void ShouldNotFilterReleaseBuildNumbers() { assertThat(DefaultUdcInformationCollector.FilterVersionForUDC("1.9"), @is(equalTo("1.9"))); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldNotFilterSnapshotBuildNumbers() public virtual void ShouldNotFilterSnapshotBuildNumbers() { assertThat(DefaultUdcInformationCollector.FilterVersionForUDC("2.0-SNAPSHOT"), @is(equalTo("2.0-SNAPSHOT"))); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldFilterPlusBuildNumbers() public virtual void ShouldFilterPlusBuildNumbers() { assertThat(DefaultUdcInformationCollector.FilterVersionForUDC("1.9.0-M01+00001"), @is(equalTo("1.9.0-M01"))); }