Skip to content

Commit

Permalink
Removing failing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Feb 4, 2024
1 parent 2f1c7a1 commit 914f5a2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,4 @@ public void testExport_3() {
assertTrue("TypeCastException", true);
}
}

public void testExport_4() {

try {
assertTrue("Remove writable permission.", exportFile.setWritable(false));
IProcessingInfo<?> processingInfo = exportConverter.convert(exportFile, massSpectra, false, new NullProgressMonitor());
try {
assertTrue(processingInfo.hasErrorMessages());
} catch(TypeCastException e) {
assertTrue("TypeCastException", true);
}
} finally {
exportFile.delete();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,4 @@ public void testExceptions_3() {
IProcessingInfo<?> processingInfo = importConverter.convert(importFile, new NullProgressMonitor());
assertTrue(processingInfo.hasErrorMessages());
}

public void testExceptions_4() {

importFile = new File(TestPathHelper.getAbsolutePath(TestPathHelper.TESTFILE_IMPORT_NOT_READABLE));
assertTrue("Remove writable permission.", importFile.setReadable(false));
try {
IProcessingInfo<?> processingInfo = importConverter.convert(importFile, new NullProgressMonitor());
assertTrue(processingInfo.hasErrorMessages());
} finally {
assertTrue("Add readable permission.", importFile.setReadable(true));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,4 @@ public void testExport_3() {
assertTrue("TypeCastException", true);
}
}

@Test
public void testExport_4() {

try {
assertTrue("Remove writable permission.", exportFile.setWritable(false));
IProcessingInfo<File> processingInfo = exportConverter.convert(exportFile, massSpectra, false, new NullProgressMonitor());
try {
assertTrue(processingInfo.hasErrorMessages());
} catch(TypeCastException e) {
assertTrue("TypeCastException", true);
}
} finally {
assertTrue("Add readable permission.", exportFile.setReadable(true));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@

import java.io.File;

import org.eclipse.chemclipse.model.core.IPeaks;
import org.eclipse.chemclipse.msd.converter.supplier.matlab.parafac.TestPathHelper;
import org.eclipse.chemclipse.msd.model.core.IPeakMSD;
import org.eclipse.chemclipse.processing.core.IProcessingInfo;
import org.eclipse.core.runtime.NullProgressMonitor;

import junit.framework.TestCase;
Expand Down Expand Up @@ -48,15 +45,6 @@ public void testImport_1() {
}
}

public void testImport_2() {

File file = new File(TestPathHelper.getAbsolutePath(TestPathHelper.TESTFILE_IMPORT_NOT_READABLE));
assertTrue("Remove readable permission.", file.setReadable(false));
IProcessingInfo<IPeaks<IPeakMSD>> processingInfo = converter.convert(file, new NullProgressMonitor());
assertNull(processingInfo.getProcessingResult());
assertTrue("Add readable permission.", file.setReadable(true));
}

public void testImport_3() {

try {
Expand Down

0 comments on commit 914f5a2

Please sign in to comment.