@Test public void testSeparatorsToUnix() { assertNull("expect null path", DefaultSlingSimulator.separatorsToUnix(null)); assertEquals("expect new path", "/some/path", DefaultSlingSimulator.separatorsToUnix("\\some\\path")); assertEquals("expect same path", "/some/path", DefaultSlingSimulator.separatorsToUnix("/some/path")); }
static String separatorsToUnix(final String path) { if (path == null || path.indexOf('\\') == -1) { return path; } return path.replace('\\', '/'); }
DefaultSlingSimulator implements SlingSimulatorBackend, SlingSimulator { static String separatorsToUnix(final String path) { if (path == null || path.indexOf('\\') == -1) { return path; } return path.replace('\\', '/'); } }
DefaultSlingSimulator implements SlingSimulatorBackend, SlingSimulator { static String separatorsToUnix(final String path) { if (path == null || path.indexOf('\\') == -1) { return path; } return path.replace('\\', '/'); }  }
DefaultSlingSimulator implements SlingSimulatorBackend, SlingSimulator { static String separatorsToUnix(final String path) { if (path == null || path.indexOf('\\') == -1) { return path; } return path.replace('\\', '/'); }  static SlingSimulatorBackend instance(); @Override void startedScan(); @Override void setSession(final Session session); @Override void setPackageManager(final JcrPackageManager packageManager); @Override void setErrorListener(final ErrorListener errorListener); @Override @Nullable SlingInstallable dequeueInstallable(); @SuppressWarnings("unchecked") @Override @NotNull Fun.ThrowingSupplier<ResourceType> open(@NotNull final SlingOpenable<ResourceType> installable); @NotNull JcrPackage openEmbeddedPackage(@NotNull final EmbeddedPackageInstallable installable); @Override @Nullable SlingInstallable addInstallableNode(final @NotNull PackageId parentPackageId,
                                                         final @NotNull Node node); }
DefaultSlingSimulator implements SlingSimulatorBackend, SlingSimulator { static String separatorsToUnix(final String path) { if (path == null || path.indexOf('\\') == -1) { return path; } return path.replace('\\', '/'); }  static SlingSimulatorBackend instance(); @Override void startedScan(); @Override void setSession(final Session session); @Override void setPackageManager(final JcrPackageManager packageManager); @Override void setErrorListener(final ErrorListener errorListener); @Override @Nullable SlingInstallable dequeueInstallable(); @SuppressWarnings("unchecked") @Override @NotNull Fun.ThrowingSupplier<ResourceType> open(@NotNull final SlingOpenable<ResourceType> installable); @NotNull JcrPackage openEmbeddedPackage(@NotNull final EmbeddedPackageInstallable installable); @Override @Nullable SlingInstallable addInstallableNode(final @NotNull PackageId parentPackageId,
                                                         final @NotNull Node node);  }