Skip to content

Commit

Permalink
Rewrite groovy test as junit
Browse files Browse the repository at this point in the history
  • Loading branch information
tdrwenski committed Apr 17, 2024
1 parent fd32f9e commit 16d3f5a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 39 deletions.
1 change: 0 additions & 1 deletion netcdf4/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ dependencies {

sourceSets {
unloadedTest {
groovy.srcDir file('src/unloadedTest/groovy')
resources.srcDir file('src/unloadedTest/resources')
compileClasspath += sourceSets.main.output + configurations.testCompileClasspath
runtimeClasspath += output + sourceSets.main.output + configurations.testRuntimeClasspath
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package ucar.nc2.jni.netcdf;

import java.io.IOException;
import org.junit.Test;
import ucar.nc2.Attribute;

public class TestUnloadedNc4Iosp {

@Test
public void shouldFlushInDefineModeWithoutCLib() throws IOException {
Nc4Iosp nc4Iosp = new Nc4Iosp();
nc4Iosp.flush();
}

@Test
public void shouldUpdateAttributeInDefineModeWithoutCLib() throws IOException {
Nc4Iosp nc4Iosp = new Nc4Iosp();
nc4Iosp.updateAttribute(null, new Attribute("foo", "bar"));
}
}

0 comments on commit 16d3f5a

Please sign in to comment.