Java Code Examples for sun.reflect.generics.reflectiveObjects.NotImplementedException

The following examples show how to use sun.reflect.generics.reflectiveObjects.NotImplementedException. These examples are extracted from open source projects. 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 Project: xsync   Source File: MultiKeysXSyncTest.java    License: Apache License 2.0 6 votes vote down vote up
@Test
void throwExceptionInFunction() {

	Exception exception = null;
	try {
		xsync.evaluate(Arrays.asList(123L), () -> {
			// nop
			throw new NotImplementedException();
		});
	} catch (Exception e) {
		exception = e;
	}

	assertThat(exception).isNotNull();
	assertThat(exception.getClass()).isEqualTo(NotImplementedException.class);
}
 
Example 2
Source Project: registry   Source File: TestAuthorizationAgent.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeSchemaVersion(Authorizer.UserAndGroups userAndGroups,
                                   ISchemaRegistry schemaRegistry,
                                   Long versionId,
                                   Authorizer.AccessType accessType) {
    throw new NotImplementedException();
}
 
Example 3
Source Project: registry   Source File: TestAuthorizationAgent.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeCreateSchemaBranch(Authorizer.UserAndGroups userAndGroups,
                                        ISchemaRegistry schemaRegistry,
                                        String schemaMetadataName,
                                        Long versionId,
                                        String branchTocreate)   {
    throw new NotImplementedException();
}
 
Example 4
Source Project: StSLib   Source File: ClickableRelic.java    License: MIT License 5 votes vote down vote up
default boolean hovered()
{
    if (this instanceof AbstractRelic) {
        AbstractRelic relic = (AbstractRelic) this;
        return relic.hb.hovered;
    }
    throw new NotImplementedException();
}
 
Example 5
Source Project: registry   Source File: TestAuthorizationAgent.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeSchemaVersion(Authorizer.UserAndGroups userAndGroups,
                                   ISchemaRegistry schemaRegistry,
                                   SchemaIdVersion versionId,
                                   Authorizer.AccessType accessType) {
    throw new NotImplementedException();
}
 
Example 6
Source Project: registry   Source File: TestAuthorizationAgent.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeSchemaVersion(Authorizer.UserAndGroups userAndGroups,
                                   ISchemaRegistry schemaRegistry,
                                   SchemaVersionKey versionKey,
                                   Authorizer.AccessType accessType) {
    throw new NotImplementedException();
}
 
Example 7
Source Project: registry   Source File: TestAuthorizationAgent.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeSchemaVersion(Authorizer.UserAndGroups userAndGroups,
                                   ISchemaRegistry schemaRegistry,
                                   SchemaVersionInfo versionInfo,
                                   Authorizer.AccessType accessType) {
    throw new NotImplementedException();
}
 
Example 8
@ExceptionHandler(NotImplementedException.class)
@ResponseStatus(HttpStatus.NOT_IMPLEMENTED)
public MessageResponse handleNotImplementedException(HttpServletRequest request, NotImplementedException e) {
    MessageResponse response = new MessageResponse(HttpStatus.NOT_IMPLEMENTED, buildDate(), request, e.getLocalizedMessage());
    log(e, response);
    return response;
}
 
Example 9
Source Project: tgboost   Source File: GBM.java    License: MIT License 5 votes vote down vote up
private double calculate_metric(String eval_metric,double[] pred,double[] label){
    if(eval_metric.equals("acc")){
        return Metric.accuracy(pred,label);
    }else if(eval_metric.equals("error")){
        return Metric.error(pred,label);
    }else if(eval_metric.equals("mse")){
        return Metric.mean_square_error(pred,label);
    }else if(eval_metric.equals("mae")){
        return Metric.mean_absolute_error(pred,label);
    }else if(eval_metric.equals("auc")){
        return Metric.auc(pred,label);
    }else {
        throw new NotImplementedException();
    }
}
 
Example 10
Source Project: registry   Source File: TestAuthorizationAgent.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeSchemaVersion(Authorizer.UserAndGroups userAndGroups,
                                   ISchemaRegistry schemaRegistry,
                                   String schemaMetadataName,
                                   String schemaBranch,
                                   Authorizer.AccessType accessType)   {
    throw new NotImplementedException();
}
 
Example 11
Source Project: registry   Source File: TestAuthorizationAgent.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void authorizeSchemaMetadata(Authorizer.UserAndGroups userAndGroups,
                                    ISchemaRegistry schemaRegistry,
                                    String schemaMetadataName,
                                    Authorizer.AccessType accessType)   {
    throw new NotImplementedException();
}
 
Example 12
Source Project: registry   Source File: TestAuthorizationAgent.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public Collection<SchemaBranch> authorizeGetAllBranches(Authorizer.UserAndGroups userAndGroups,
                                                        ISchemaRegistry schemaRegistry,
                                                        String schemaMetadataName,
                                                        Collection<SchemaBranch> branches)  {
    throw new NotImplementedException();
}
 
Example 13
@Override
public BaseStatistics getStatistics(BaseStatistics baseStatistics) throws IOException {
	throw new NotImplementedException();
}
 
Example 14
Source Project: RankPL   Source File: Collect.java    License: MIT License 4 votes vote down vote up
@Override
public Executor getExecutor(Executor out, ExecutionContext c) {
	throw new NotImplementedException();
}
 
Example 15
@Override
public void close() throws IOException {
	throw new NotImplementedException();
}
 
Example 16
@Override
public void open(InputSplit inputSplit) throws IOException {
	throw new NotImplementedException();
}
 
Example 17
@Override
public void publish(Topic topic, Event event) {
    throw new NotImplementedException();
}
 
Example 18
@Override
public void subscribe(Topic topic, EventHandler handler) {
    throw new NotImplementedException();
}
 
Example 19
Source Project: dapeng-soa   Source File: JsonReader.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void onNumber(long value) throws TException {
    throw new NotImplementedException();
}
 
Example 20
Source Project: nesty   Source File: HttpSession.java    License: Apache License 2.0 4 votes vote down vote up
public void setMaxInactiveInterval(int interval) {
    throw new NotImplementedException();
}
 
Example 21
@Override
public RDFWriter setWriterConfig(WriterConfig writerConfig) {
    throw new NotImplementedException();
}
 
Example 22
Source Project: registry   Source File: TestAuthorizationAgent.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void authorizeMergeSchemaVersion(Authorizer.UserAndGroups userAndGroups,
                                        ISchemaRegistry schemaRegistry,
                                        Long versionId) {
    throw new NotImplementedException();
}
 
Example 23
@Override
public Collection<RioSetting<?>> getSupportedSettings() {
    throw new NotImplementedException();
}
 
Example 24
@Override
public <T> RDFWriter set(RioSetting<T> rioSetting, T t) {
    throw new NotImplementedException();
}
 
Example 25
Source Project: new-bull   Source File: CollectionHandler.java    License: MIT License 4 votes vote down vote up
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
    throw new NotImplementedException();
}
 
Example 26
Source Project: Spring-Boot-2-Fundamentals   Source File: BlogServiceJUnitTest.java    License: MIT License 4 votes vote down vote up
@Override
public void add(BlogEntry entry) {
    throw new NotImplementedException();
}
 
Example 27
Source Project: certstream-java   Source File: CertStreamCertificate.java    License: MIT License 4 votes vote down vote up
/**Not implemented*/
@Override
public BigInteger getSerialNumber() {
    throw new NotImplementedException();
}
 
Example 28
Source Project: certstream-java   Source File: CertStreamCertificate.java    License: MIT License 4 votes vote down vote up
/**Not implemented*/
@Override
public Principal getIssuerDN() {
    throw new NotImplementedException();
}
 
Example 29
protected  void printUsageAndExit() {
    throw new NotImplementedException();
}
 
Example 30
Source Project: registry   Source File: TestAuthorizationAgent.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void authorizeSerDes(Authorizer.UserAndGroups userAndGroups,
                            Authorizer.AccessType accessType)   {
    throw new NotImplementedException();
}