org.apache.hadoop.io.TestWritable Java Examples
The following examples show how to use
org.apache.hadoop.io.TestWritable.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestBlockToken.java From hadoop with Apache License 2.0 | 5 votes |
@Test public void testWritable() throws Exception { TestWritable.testWritable(new BlockTokenIdentifier()); BlockTokenSecretManager sm = new BlockTokenSecretManager( blockKeyUpdateInterval, blockTokenLifetime, 0, "fake-pool", null); TestWritable.testWritable(generateTokenId(sm, block1, EnumSet.allOf(BlockTokenSecretManager.AccessMode.class))); TestWritable.testWritable(generateTokenId(sm, block2, EnumSet.of(BlockTokenSecretManager.AccessMode.WRITE))); TestWritable.testWritable(generateTokenId(sm, block3, EnumSet.noneOf(BlockTokenSecretManager.AccessMode.class))); }
Example #2
Source File: TestBlockToken.java From big-c with Apache License 2.0 | 5 votes |
@Test public void testWritable() throws Exception { TestWritable.testWritable(new BlockTokenIdentifier()); BlockTokenSecretManager sm = new BlockTokenSecretManager( blockKeyUpdateInterval, blockTokenLifetime, 0, "fake-pool", null); TestWritable.testWritable(generateTokenId(sm, block1, EnumSet.allOf(BlockTokenSecretManager.AccessMode.class))); TestWritable.testWritable(generateTokenId(sm, block2, EnumSet.of(BlockTokenSecretManager.AccessMode.WRITE))); TestWritable.testWritable(generateTokenId(sm, block3, EnumSet.noneOf(BlockTokenSecretManager.AccessMode.class))); }
Example #3
Source File: TestUnixUserGroupInformation.java From RDFS with Apache License 2.0 | 4 votes |
/** test Writable */ public void testWritable() throws Exception { UnixUserGroupInformation ugi = new UnixUserGroupInformation( USER_NAME, GROUP_NAMES); TestWritable.testWritable(ugi, new Configuration()); }
Example #4
Source File: TestUnixUserGroupInformation.java From hadoop-gpu with Apache License 2.0 | 4 votes |
/** test Writable */ public void testWritable() throws Exception { UnixUserGroupInformation ugi = new UnixUserGroupInformation( USER_NAME, GROUP_NAMES); TestWritable.testWritable(ugi, new Configuration()); }