@Test public void testTranslateAdToWrapperPosition_1stAdAt5_Position1_Result16() throws Exception { setupAdmobAdapterCalculatorHelper(10, 5, 10); assertThat(admobAdapterCalculator.translateAdToWrapperPosition(1), is(16)); }
public int translateAdToWrapperPosition(int adPos) { int wrappedPosition = adPos*(getNoOfDataBetweenAds() + 1) + getOffsetValue(); return wrappedPosition; }
AdmobAdapterCalculator { public int translateAdToWrapperPosition(int adPos) { int wrappedPosition = adPos*(getNoOfDataBetweenAds() + 1) + getOffsetValue(); return wrappedPosition; } }
AdmobAdapterCalculator { public int translateAdToWrapperPosition(int adPos) { int wrappedPosition = adPos*(getNoOfDataBetweenAds() + 1) + getOffsetValue(); return wrappedPosition; }  }
AdmobAdapterCalculator { public int translateAdToWrapperPosition(int adPos) { int wrappedPosition = adPos*(getNoOfDataBetweenAds() + 1) + getOffsetValue(); return wrappedPosition; }  int getNoOfDataBetweenAds(); void setNoOfDataBetweenAds(int mNoOfDataBetweenAds); int getFirstAdIndex(); void setFirstAdIndex(int firstAdIndex); int getLimitOfAds(); void setLimitOfAds(int mLimitOfAds); int getAdsCountToPublish(int fetchedAdsCount, int sourceItemsCount); int getOriginalContentPosition(int position, int fetchedAdsCount, int sourceItemsCount); int translateAdToWrapperPosition(int adPos); int translateSourceIndexToWrapperPosition(int sourcePos, int fetchedAdsCount); boolean canShowAdAtPosition(int position, int fetchedAdsCount); int getAdIndex(int position); boolean isAdPosition(int position); int getOffsetValue(); boolean isAdAvailable(int position, int fetchedAdsCount); boolean hasToFetchAd(int position, int fetchingAdsCount); }
AdmobAdapterCalculator { public int translateAdToWrapperPosition(int adPos) { int wrappedPosition = adPos*(getNoOfDataBetweenAds() + 1) + getOffsetValue(); return wrappedPosition; }  int getNoOfDataBetweenAds(); void setNoOfDataBetweenAds(int mNoOfDataBetweenAds); int getFirstAdIndex(); void setFirstAdIndex(int firstAdIndex); int getLimitOfAds(); void setLimitOfAds(int mLimitOfAds); int getAdsCountToPublish(int fetchedAdsCount, int sourceItemsCount); int getOriginalContentPosition(int position, int fetchedAdsCount, int sourceItemsCount); int translateAdToWrapperPosition(int adPos); int translateSourceIndexToWrapperPosition(int sourcePos, int fetchedAdsCount); boolean canShowAdAtPosition(int position, int fetchedAdsCount); int getAdIndex(int position); boolean isAdPosition(int position); int getOffsetValue(); boolean isAdAvailable(int position, int fetchedAdsCount); boolean hasToFetchAd(int position, int fetchingAdsCount);  }