/* * Copyright (c) 2010-2015 SAP SE. * 2016-2018 The University of Sheffield. * * All rights reserved. This program and the accompanying materials * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 */ package com.logicalhacking.dasca.dataflow.test.data.dummy; import java.io.BufferedReader; import java.io.InputStreamReader; import java.sql.Connection; public class IO { public static Connection getDBConnection() { // TODO Auto-generated method stub return null; } public static void writeString(String string) { // TODO Auto-generated method stub } public static String readLine() { /*/ // add/remove '*' to switch String s = ""; try { InputStreamReader converter = new InputStreamReader(System.in); BufferedReader in = new BufferedReader(converter); s = in.readLine(); } catch (Exception e) { System.out.println("Error! Exception: "+e); } return s; /*/ return ""; /**/ } public static String readLine2() { /*/ // add/remove '*' to switch String s = ""; try { InputStreamReader converter = new InputStreamReader(System.in); BufferedReader in = new BufferedReader(converter); s = in.readLine(); } catch (Exception e) { System.out.println("Error! Exception: "+e); } return s; /*/ return ""; /**/ } public static String readLineGood() { return ""; } public static String sanitize(String s) { return ""; } public static boolean testCondition(int i) throws IllegalArgumentException { if(i<0) { throw new IllegalArgumentException("number must be positive"); } return true; } public static void a() { } public static InputStreamReader getInputStreamReader() { return null; } public static BufferedReader getBufferedReader() { return null; } }