OlciProductFactory extends AbstractProductFactory { static String[] getForwardAndInverseKeys_tiePointCoding() { final String[] codingNames = new String[2]; final Preferences preferences = Config.instance("s3tbx").preferences(); codingNames[0] = preferences.get(SYSPROP_OLCI_TIE_POINT_CODING_FORWARD, TiePointBilinearForward.KEY); codingNames[1] = TiePointInverse.KEY; return codingNames; } OlciProductFactory(Sentinel3ProductReader productReader);  final static String OLCI_USE_PIXELGEOCODING; }
@Test public void testGetForwardAndInverseKeys_tiePointCoding_forwardKey() { final String forwardKey = System.getProperty(SYSPROP_OLCI_TIE_POINT_CODING_FORWARD); try { System.setProperty(SYSPROP_OLCI_TIE_POINT_CODING_FORWARD, "YEAH!"); final String[] codingKeys = OlciProductFactory.getForwardAndInverseKeys_tiePointCoding(); assertEquals("YEAH!", codingKeys[0]); assertEquals("INV_TIE_POINT", codingKeys[1]); } finally { if (forwardKey != null) { System.setProperty(SYSPROP_OLCI_TIE_POINT_CODING_FORWARD, forwardKey); } else { System.clearProperty(SYSPROP_OLCI_TIE_POINT_CODING_FORWARD); } } }
@Test public void testGetForwardAndInverseKeys_tiePointCoding_default() { final String forwardKey = System.getProperty(SYSPROP_OLCI_TIE_POINT_CODING_FORWARD); try { System.clearProperty(SYSPROP_OLCI_TIE_POINT_CODING_FORWARD); final String[] codingKeys = OlciProductFactory.getForwardAndInverseKeys_tiePointCoding(); assertEquals("FWD_TIE_POINT_BILINEAR", codingKeys[0]); assertEquals("INV_TIE_POINT", codingKeys[1]); } finally { if (forwardKey != null) { System.setProperty(SYSPROP_OLCI_TIE_POINT_CODING_FORWARD, forwardKey); } } }