test_class.declarator: KEY_SIZE = 32
test_class.modifier: private static final
test_class.original_string: private static final int KEY_SIZE = 32;
test_class.type: int
test_class.var_name: KEY_SIZE
test_class.file: java_src/src/test/java/com/google/crypto/tink/prf/PrfSetWrapperTest.java
test_class.identifier: PrfSetWrapperTest
test_case.body: @Test
    public void testWrapNoPrimaryThrows() throws Exception {
      byte[] primaryKeyValue = Random.randBytes(KEY_SIZE);
      Keyset.Key primary =
          TestUtil.createKey(
              TestUtil.createPrfKeyData(primaryKeyValue),
              /* keyId= */ 5,
              KeyStatusType.ENABLED,
              OutputPrefixType.RAW);
      final Prf unusedPrf =
          new Prf() {
            @Override
            public byte[] compute(byte[] input, int outputLength) throws GeneralSecurityException {
              return new byte[0];
            }
          };
      final PrimitiveSet<PrfSet> primitiveSet = PrimitiveSet.newPrimitiveSet(PrfSet.class);
      primitiveSet.addPrimitive(
          new PrfSet() {
            @Override
            public int getPrimaryId() {
              return 0;
            }
  
            @Override
            public Map<Integer, Prf> getPrfs() throws GeneralSecurityException {
              HashMap<Integer, Prf> prfMap = new HashMap<>();
              prfMap.put(0, unusedPrf);
              return prfMap;
            }
          },
          primary);
      // Note: Added a primary key but did not call primitiveSet.setPrimary().
  
      assertThrows(
          GeneralSecurityException.class,
          new ThrowingRunnable() {
            @Override
            public void run() throws Throwable {
              new PrfSetWrapper().wrap(primitiveSet);
            }
          });
    }
test_case.class_method_signature: PrfSetWrapperTest.testWrapNoPrimaryThrows()
test_case.full_signature: @Test public void testWrapNoPrimaryThrows()
test_case.identifier: testWrapNoPrimaryThrows
test_case.invocations: randBytes createKey createPrfKeyData newPrimitiveSet addPrimitive put assertThrows wrap
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testWrapNoPrimaryThrows()
focal_class.file: java_src/src/main/java/com/google/crypto/tink/prf/PrfSetWrapper.java
focal_class.identifier: PrfSetWrapper
focal_class.interfaces: implements PrimitiveWrapper<PrfSet, PrfSet>
focal_class.class_method_signature: PrfSetWrapper.wrap(PrimitiveSet<PrfSet> set)
focal_class.full_signature: @Override public PrfSet wrap(PrimitiveSet<PrfSet> set)
focal_class.identifier: wrap
focal_class.modifiers: @Override public
focal_class.parameters: (PrimitiveSet<PrfSet> set)
focal_class.return: PrfSet
focal_class.signature: PrfSet wrap(PrimitiveSet<PrfSet> set)
focal_class.class_method_signature: PrfSetWrapper.getPrimitiveClass()
focal_class.full_signature: @Override public Class<PrfSet> getPrimitiveClass()
focal_class.identifier: getPrimitiveClass
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<PrfSet>
focal_class.signature: Class<PrfSet> getPrimitiveClass()
focal_class.class_method_signature: PrfSetWrapper.getInputPrimitiveClass()
focal_class.full_signature: @Override public Class<PrfSet> getInputPrimitiveClass()
focal_class.identifier: getInputPrimitiveClass
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<PrfSet>
focal_class.signature: Class<PrfSet> getInputPrimitiveClass()
focal_class.class_method_signature: PrfSetWrapper.register()
focal_class.full_signature: public static void register()
focal_class.identifier: register
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void register()
focal_method.body: @Override
    public PrfSet wrap(PrimitiveSet<PrfSet> set) throws GeneralSecurityException {
      return new WrappedPrfSet(set);
    }
focal_method.class_method_signature: PrfSetWrapper.wrap(PrimitiveSet<PrfSet> set)
focal_method.full_signature: @Override public PrfSet wrap(PrimitiveSet<PrfSet> set)
focal_method.identifier: wrap
focal_method.modifiers: @Override public
focal_method.parameters: (PrimitiveSet<PrfSet> set)
focal_method.return: PrfSet
focal_method.signature: PrfSet wrap(PrimitiveSet<PrfSet> set)