public TestPlatform platform ( ) { CodeGeneratorLoggerFactory . getLogger ( ) . debug ( String . format ( "Specified platform in data file [%s] : [%s] " , fileName , reader . getPlatform ( ) ) ) ; TestPlatform currentPlatform = reader . getPlatform ( ) ; if ( currentPlatform == null ) { String dataFile = new File ( fileName ) . getAbsolutePath ( ) ; throw new IllegalArgumentException ( "Missing or incorrect platform in Data file:" + dataFile ) ; } return currentPlatform ; }
Return the platform specified in the PageYaml input