//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void emits_warnings_for_restricted_enterprise_types() public virtual void EmitsWarningsForRestrictedEnterpriseTypes() { JavaFileObject sproc = JavaFileObjects.forResource(ResolveUrl("context/restricted_types/EnterpriseProcedure.java")); CompileTester.SuccessfulCompilationClause warningCompilationClause = assert_().about(javaSource()).that(sproc).processedWith(_processor).compilesWithoutError().withWarningCount(3); warningCompilationClause.withWarningContaining("@org.neo4j.procedure.Context usage warning: found unsupported restricted type " + "<org.neo4j.kernel.enterprise.api.security.EnterpriseAuthManager> on EnterpriseProcedure#enterpriseAuthManager.\n" + " The procedure will not load unless declared via the configuration option 'dbms.security.procedures.unrestricted'.\n" + " You can ignore this warning by passing the option -AIgnoreContextWarnings to the Java compiler").@in(sproc).onLine(39); warningCompilationClause.withWarningContaining("@org.neo4j.procedure.Context usage warning: found unsupported restricted type " + "<org.neo4j.server.security.enterprise.log.SecurityLog> on EnterpriseProcedure#securityLog.\n" + " The procedure will not load unless declared via the configuration option 'dbms.security.procedures.unrestricted'.\n" + " You can ignore this warning by passing the option -AIgnoreContextWarnings to the Java compiler").@in(sproc).onLine(42); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void does_not_emit_warnings_for_restricted_enterprise_types_when_warnings_are_disabled() public virtual void DoesNotEmitWarningsForRestrictedEnterpriseTypesWhenWarningsAreDisabled() { JavaFileObject sproc = JavaFileObjects.forResource(ResolveUrl("context/restricted_types/EnterpriseProcedure.java")); assert_().about(javaSource()).that(sproc).withCompilerOptions("-AIgnoreContextWarnings").processedWith(_processor).compilesWithoutError().withWarningCount(1); }