All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ocpsoft.rewrite.mock.MockFailedBinding Maven / Gradle / Ivy

There is a newer version: 10.0.2.Final
Show newest version
package org.ocpsoft.rewrite.mock;

import org.ocpsoft.rewrite.bind.Binding;
import org.ocpsoft.rewrite.context.EvaluationContext;
import org.ocpsoft.rewrite.event.Rewrite;

public class MockFailedBinding implements Binding
{

   @Override
   public Object retrieve(final Rewrite event, final EvaluationContext context)
   {
      throw new RuntimeException("Binding extraction failed (expected)");
   }

   @Override
   public boolean supportsRetrieval()
   {
      return true;
   }

   @Override
   public boolean supportsSubmission()
   {
      return true;
   }

   @Override
   public Object submit(final Rewrite event, final EvaluationContext context, final Object value)
   {
      throw new RuntimeException("Binding failed (expected)");
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy