Tabnine Logo
TypeEditor.propertyDeleted
Code IndexAdd Tabnine to your IDE (free)

How to use
propertyDeleted
method
in
org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor

Best Java code snippets using org.apache.jackrabbit.oak.plugins.nodetype.TypeEditor.propertyDeleted (Showing top 2 results out of 315)

origin: apache/jackrabbit-oak

@Test(expected = CommitFailedException.class)
public void removeMandatoryProperty() throws CommitFailedException {
  EffectiveType effective = createControl().createMock(EffectiveType.class);
  expect(effective.isMandatoryProperty("mandatory")).andReturn(true);
  expect(effective.getDirectTypeNames()).andReturn(Collections.emptyList());
  replay(effective);
  TypeEditor editor = new TypeEditor(effective);
  editor.propertyDeleted(PropertyStates.createProperty("mandatory", ""));
}
origin: apache/jackrabbit-oak

@Test
public void removeNonMandatoryProperty() throws CommitFailedException {
  EffectiveType effective = createControl().createMock(EffectiveType.class);
  expect(effective.isMandatoryProperty("mandatory")).andReturn(false);
  replay(effective);
  TypeEditor editor = new TypeEditor(effective);
  editor.propertyDeleted(PropertyStates.createProperty("mandatory", ""));
}
org.apache.jackrabbit.oak.plugins.nodetypeTypeEditorpropertyDeleted

Popular methods of TypeEditor

  • <init>
  • checkNodeTypeConstraints
  • checkPropertyTypeConstraints
  • checkRequiredType
  • checkValueConstraints
  • childNodeChanged
  • constraintViolation
    Throws or logs the specified constraint violation.
  • createEffectiveType
  • getEffective
  • getPath
  • getRequiredType
  • mixinsChanged
  • getRequiredType,
  • mixinsChanged,
  • primaryChanged,
  • propertyChanged,
  • childNodeDeleted,
  • create

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now