ODPSConsoleUtils { public static String getConfigFilePath() { URL url = ODPSConsoleUtils.class.getClassLoader().getResource("odps_config.ini"); if (url == null) { return null; } else { return url.getFile(); } }  static String formatDate(Date date); @SuppressWarnings("resource") static void formaterTable(List<String[]> contentList, int[] columnPercent, int width); static void formaterTableRow(String[] str, int[] columnPercent, int width); static int getConsoleWidth(); static boolean isWindows(); static String getConfigFilePath(); static String getMvnVersion(); static String getUserAgent(); static boolean containsHanBlock(String s); static String shiftOption(List<String> optionList, String option); static TablePart getTablePart(String cmd); static TablePart getTablePartFromPubCommand(String cmd); static String[] parseTableSpec(String str); static String generateLogView(Odps odps, Instance instance, ExecutionContext context); static String[] translateCommandline(String line); synchronized static String runCommand(AbstractCommand command); static void checkThreadInterrupted(); static ODPSConsoleReader getOdpsConsoleReader(); static String safeGetString(LazyLoad resource, String methodName); static String safeGetDateString(LazyLoad resource, String methodName); static Object safeGetObject(LazyLoad resource, String methodName); static int compareVersion(String left, String right); static Map<String, Integer> getDisplayWidth(List<Column> columns,
                                                     List<Column> partitionsColumns,
                                                     List<String> selectColumns); static String makeOutputFrame(Map<String, Integer> displayWidth); static String makeTitle(List<Column> columns, Map<String, Integer> displayWidth); static final SimpleDateFormat DATE_FORMAT; }
@Test public void getConfigTest() { File file = new File(ODPSConsoleUtils.getConfigFilePath()); assertTrue(file.exists()); }