Example usage for org.apache.commons.lang NotImplementedException NotImplementedException

List of usage examples for org.apache.commons.lang NotImplementedException NotImplementedException

Introduction

In this page you can find the example usage for org.apache.commons.lang NotImplementedException NotImplementedException.

Prototype

public NotImplementedException() 

Source Link

Document

Constructs a new NotImplementedException with default message.

Usage

From source file:ar.com.zauber.commons.auth.acegi.password.AlreadyExistsValidatorTest.java

/** test */
public final void testFoo() {
    final Map<String, PasswordEncoder> map = new HashMap<String, PasswordEncoder>();
    final Md5PasswordEncoder md5 = new Md5PasswordEncoder();
    md5.setEncodeHashAsBase64(true);/*  w w  w. j a  va  2s.co m*/
    final ShaPasswordEncoder sha = new ShaPasswordEncoder();
    sha.setEncodeHashAsBase64(true);
    map.put("MD5", new AcegiPasswordEncoderAdapter(new LdapUserPasswordPasswordEncoder(md5, "{MD5}")));
    map.put("SHA", new AcegiPasswordEncoderAdapter(new LdapUserPasswordPasswordEncoder(sha, "{SHA}")));
    map.put("CRYPT", new UnixCryptAcegiPasswordEncoder());

    final PasswordValidator validator = new AlreadyExistsPasswordValidator<String>(
            new AlreadyExistsPasswordValidator.PasswordDAO<String>() {
                public void getPasswords(final String user, final Closure<String> passwordClosure) {
                    final String[] password = { "{SHA}mYALhdM4PjovtF630AZqSHmp2tA=", // hola
                            "{CRYPT}r63tqDQ3/7dsk", // chau
                            "{MD5}YFfxPEluz3/Xd86555rihQ==", // hey
                    };
                    for (final String passwd : password) {
                        passwordClosure.execute(passwd);
                    }
                }

                public void registerPassword(final String user, final String codedPassword) {
                    throw new NotImplementedException();
                }

            }, new AcegiLdapUserPasswordEncoder(map), new MockAuthenticationUser<String>("jaime"));

    try {
        validator.validate("hola");
        fail();
    } catch (final InvalidPassword p) {
        // ok
    }
    try {
        validator.validate("chau");
        fail();
    } catch (final InvalidPassword p) {
        // ok
    }

    try {
        validator.validate("hey");
        fail();
    } catch (final InvalidPassword p) {
        // ok
    }

    validator.validate("asdasd");
}

From source file:de.hpi.isg.mdms.flink.location.MergedCsvFilePartitionLocation.java

@SuppressWarnings("unchecked")
@Override//w w  w .j  a va 2  s  . c  o m
public DataSourceBuilder<Table, MergedCsvFilePartitionLocation, Tuple> getTupleDataSourceBuilder() {
    // TODO
    throw new NotImplementedException();
}

From source file:com.opengamma.analytics.financial.greeks.AbstractGreekVisitor.java

@Override
public T visitVegaBleed() {

    throw new NotImplementedException();
}

From source file:com.opengamma.analytics.math.function.PiecewisePolynomialWithSensitivityFunction1D.java

/** 
 * @param pp {@link PiecewisePolynomialResultsWithSensitivity}
 * @param xKeys //w w w  . j  a  v a 2 s.c o  m
 * @return Node sensitivity value at x=xKeys
 */
public DoubleMatrix1D[] nodeSensitivity(final PiecewisePolynomialResultsWithSensitivity pp,
        final double[] xKeys) {
    ArgumentChecker.notNull(pp, "null pp");
    ArgumentChecker.notNull(xKeys, "null xKeys");
    final int nKeys = xKeys.length;
    final DoubleMatrix1D[] res = new DoubleMatrix1D[nKeys];

    for (int i = 0; i < nKeys; ++i) {
        ArgumentChecker.isFalse(Double.isNaN(xKeys[i]), "xKey containing NaN");
        ArgumentChecker.isFalse(Double.isInfinite(xKeys[i]), "xKey containing Infinity");
    }
    if (pp.getDimensions() > 1) {
        throw new NotImplementedException();
    }

    final double[] knots = pp.getKnots().getData();
    final int nKnots = knots.length;

    for (int j = 0; j < nKeys; ++j) {
        final double xKey = xKeys[j];
        int interval = FunctionUtils.getLowerBoundIndex(knots, xKey);
        if (interval == nKnots - 1) {
            interval--; // there is 1 less interval that knots
        }

        final double s = xKey - knots[interval];
        final DoubleMatrix2D a = pp.getCoefficientSensitivity(interval);
        final int nCoefs = a.getNumberOfRows();

        res[j] = a.getRowVector(0);
        for (int i = 1; i < nCoefs; i++) {
            res[j] = (DoubleMatrix1D) MA.scale(res[j], s);
            res[j] = (DoubleMatrix1D) MA.add(res[j], a.getRowVector(i));
        }
    }

    return res;
}

From source file:com.amalto.core.query.user.VisitorAdapter.java

@Override
public T visit(ConstantCollection collection) {
    throw new NotImplementedException();
}

From source file:com.bloatit.web.components.HtmlFeatureSummary.java

public HtmlFeatureSummary(final Feature feature, final Compacity compacity,
        final FeaturesTools.FeatureContext context) {
    super(compacity.getCssClass());
    this.feature = feature;
    if (feature == null) {
        addText("");
        return;/* w  ww  . ja  v  a2s. c  o m*/
    }
    // Extract locales stuffs
    defaultLocale = Context.getLocalizator().getLocale();

    try {
        switch (compacity) {
        case NORMAL:
            generateNormalStructure(context);
            break;
        case COMPACT:
            generateCompactStructure(context);
            break;
        case LINE:
            throw new NotImplementedException();
        default:
            break;
        }

    } catch (final UnauthorizedOperationException e) {
        Context.getSession().notifyError(Context.tr("Unknown right error. Please notify us"));
        throw new ShallNotPassException("Unknown right error", e);
    }
}

From source file:com.hartveld.queryable.reactive.subjects.AbstractSubject.java

@Override
public <R> Observable<R> map(final Function<? super T, ? extends R> mapper) {
    throw new NotImplementedException();
}

From source file:edu.berkeley.compbio.sequtils.strings.AggregateSequenceFragment.java

public boolean overlaps(final SequenceFragmentMetadata other) throws SequenceException {
    throw new NotImplementedException();
}

From source file:com.github.seleniumpm.SeleniumWebdriver.java

public void click(String s) {
    throw new NotImplementedException();
}

From source file:ar.com.zauber.garfio.services.impl.FlexibleSvnLogParser.java

/**  @see LogParser#parse(ByLineReaderSource) */
public final Results parse(final ByLineReaderSource reader) {
    throw new NotImplementedException();
}