@@ -0,0 +1,1331 @@
+/**%0A *%0A * Copyright %C2%A9 2018 Paul Schaub%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.jivesoftware.smack.test.util;%0A%0Aimport java.io.File;%0A%0Apublic class FileTestUtil %7B%0A%0A    /**%0A     * Returns a %7B@link File%7D pointing to a temporary directory. On unix like systems this might be %7B@code /tmp%7D%0A     * for example.%0A     * If %7B@code suffix%7D is not null, the returned file points to %7B@code %3Ctemp%3E/suffix%7D.%0A     *%0A     * @param suffix optional path suffix%0A     * @return temp directory%0A     */%0A    public static File getTempDir(String suffix) %7B%0A        String temp = System.getProperty(%22java.io.tmpdir%22);%0A        if (temp == null) %7B%0A            temp = %22tmp%22;%0A        %7D%0A%0A        if (suffix == null) %7B%0A            return new File(temp);%0A        %7D else %7B%0A            return new File(temp, suffix);%0A        %7D%0A    %7D%0A%7D%0A

Add utility method to get temp directory