private void initialize(FixtureInfo fixtureInfo) throws IOException { testClass = fixtureInfo.testClass; book = Book.getInstance(fixtureInfo.testClass, fixtureInfo.filePath); sheet = book.getSheet(fixtureInfo.sheetName); testCase = sheet.getCase(fixtureInfo.testCaseName); Loggi.debug("FixtureBook : Case : " + testCase); }
private String getDefaultTargetMethod(Class<?> targetClass) { String methodName = sheet.getName(); Method[] method = targetClass.getDeclaredMethods(); for (int i = 0; i < method.length; i++) { if (method[i].getName().equals(methodName)) { return methodName; } } throw new ConfigException( "M_Fixture_FixtureBook_GetDefaultTargetMethod", methodName, targetClass.getName(), testCase); }