Package org.eclipse.jgit.util

Examples of org.eclipse.jgit.util.SystemReader


import org.eclipse.jgit.util.SystemReader;
import org.junit.Test;

public class ValidRefNameTest {
  private static void assertValid(final boolean exp, final String name) {
    SystemReader instance = SystemReader.getInstance();
    try {
      setUnixSystemReader();
      assertEquals("\"" + name + "\"", exp,
          Repository.isValidRefName(name));
      setWindowsSystemReader();
View Full Code Here


      }
    });
  }

  private static void assertInvalidOnWindows(final String name) {
    SystemReader instance = SystemReader.getInstance();
    try {
      setUnixSystemReader();
      assertEquals("\"" + name + "\"", true,
          Repository.isValidRefName(name));
      setWindowsSystemReader();
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.util.SystemReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.