Skip to content
Snippets Groups Projects
Commit c2937c73 authored by juanf's avatar juanf
Browse files

SSDM-13521: adding more methods to the Unix replacement library

parent b12bf2e7
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
package ch.systemsx.cisd.common.io;
import org.testng.annotations.Test;
import java.io.File;
import java.io.IOException;
public class PosixTest
{
@Test
public void testGetEuid()
{
int euid = Posix.getEuid();
}
@Test
public void testGetUid()
{
int uid = Posix.getUid();
}
@Test
public void testGetGid()
{
int gid = Posix.getGid();
}
@Test
public void testSetOwner() throws IOException
{
File file = File.createTempFile("pre", "su");
Posix.setOwner(file.getPath(), Posix.getUid(), Posix.getGid());
file.delete();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment