1) Fix ReferenceCountingSegmentTest to actually work again

This commit is contained in:
cheddar 2013-08-13 14:28:44 -07:00
parent d1e548aa32
commit 28c7e78a91
1 changed files with 6 additions and 4 deletions

View File

@ -22,6 +22,8 @@ package com.metamx.druid.index;
import com.google.common.base.Throwables; import com.google.common.base.Throwables;
import com.metamx.druid.StorageAdapter; import com.metamx.druid.StorageAdapter;
import junit.framework.Assert; import junit.framework.Assert;
import org.joda.time.DateTime;
import org.joda.time.Days;
import org.joda.time.Interval; import org.joda.time.Interval;
import org.junit.Before; import org.junit.Before;
import org.junit.Test; import org.junit.Test;
@ -47,25 +49,25 @@ public class ReferenceCountingSegmentTest
@Override @Override
public String getIdentifier() public String getIdentifier()
{ {
throw new UnsupportedOperationException(); return "test_segment";
} }
@Override @Override
public Interval getDataInterval() public Interval getDataInterval()
{ {
throw new UnsupportedOperationException(); return new Interval(DateTime.now().minus(Days.days(1)), DateTime.now());
} }
@Override @Override
public QueryableIndex asQueryableIndex() public QueryableIndex asQueryableIndex()
{ {
throw new UnsupportedOperationException(); return null;
} }
@Override @Override
public StorageAdapter asStorageAdapter() public StorageAdapter asStorageAdapter()
{ {
throw new UnsupportedOperationException(); return null;
} }
@Override @Override