KtfmtStep { public static FormatterStep create(Provisioner provisioner) { return create(defaultVersion(), provisioner); } private  KtfmtStep(); static FormatterStep create(Provisioner provisioner); static FormatterStep create(String version, Provisioner provisioner); static FormatterStep create(String version, Provisioner provisioner, Style style); static String defaultVersion();  }
@Test public void behavior() throws Exception { JreVersion.assume11OrGreater(); FormatterStep step = KtfmtStep.create(TestProvisioner.mavenCentral()); StepHarness.forStep(step).testResource("kotlin/ktfmt/basic.dirty", "kotlin/ktfmt/basic.clean"); }
@Test public void equality() throws Exception { new SerializableEqualityTester() { String version = "0.13"; @Override protected void setupTest(API api) { api.areDifferentThan(); version = "0.12"; api.areDifferentThan(); } @Override protected FormatterStep create() { String finalVersion = this.version; return KtfmtStep.create(finalVersion, TestProvisioner.mavenCentral()); } }.testEquals(); }