input
stringlengths 28
18.7k
| output
stringlengths 39
1.69k
|
|---|---|
devePermitirCodigoPaisNulo ( ) { final com . fincatto . documentofiscal . nfe310 . classes . NFEndereco endereco = new com . fincatto . documentofiscal . nfe310 . classes . NFEndereco ( ) ; endereco . setBairro ( "67LQFlXOBK0JqAE1rFi2CEyUGW5Z8QmmHhzmZ9GABVLKa9AbV0uFR0onl7nU" ) ; endereco . setCep ( "88095550" ) ; endereco . setCodigoMunicipio ( "9999999" ) ; endereco . setComplemento ( "Fr3gSvoAeKbGpQD3r98KFeB50P3Gq14XBVsv5fpiaBvJ3HTOpREiwYGs20Xw" ) ; endereco . setDescricaoMunicipio ( "s1Cr2hWP6bptQ80A9vWBuTaODR1U82LtKQi1DEm3LsAXu9AbkSeCtfXJVTKG" ) ; endereco . setLogradouro ( "NKwaAJ5ZJ49aQYmqBvxMhBzkGUqvtXnqusGEtjDzKCXPGwrEZCS8LGKHyBbV" ) ; endereco . setNumero ( "11mzXHR8rZTgfE35EqfGhiShiIwQfLCAziFDXVgs3EjLSPkZkCvfGNLMEf5y" ) ; endereco . setTelefone ( "12345678901324" ) ; endereco . setUf ( DFUnidadeFederativa . SC ) ; "<AssertPlaceHolder>" ; } toString ( ) { return this . getDescricao ( ) ; }
|
org . junit . Assert . assertNotNull ( endereco . toString ( ) )
|
testCreateProfileSchema ( ) { org . kaaproject . kaa . common . dto . EndpointProfileSchemaDto profileSchema = createProfileSchema ( ) ; "<AssertPlaceHolder>" ; } strIsEmpty ( java . lang . String ) { return ( str == null ) || ( str . trim ( ) . equals ( "" ) ) ; }
|
org . junit . Assert . assertFalse ( strIsEmpty ( profileSchema . getId ( ) ) )
|
testAddConfigurationParameter ( ) { org . walkmod . commands . AddTransformationCommand command = new org . walkmod . commands . AddTransformationCommand ( "imports-cleaner" , "mychain" , false , null , null , null , null , false ) ; java . io . File aux = new java . io . File ( "src/test/resources/xmlparams" ) ; aux . mkdirs ( ) ; java . io . File xml = new java . io . File ( aux , "walkmod.xml" ) ; org . walkmod . conf . providers . XMLConfigurationProvider prov = new org . walkmod . conf . providers . XMLConfigurationProvider ( xml . getPath ( ) , false ) ; try { prov . createConfig ( ) ; org . walkmod . conf . entities . TransformationConfig transfCfg = command . buildTransformationCfg ( ) ; prov . addTransformationConfig ( "mychain" , null , transfCfg , false , null , null ) ; prov . addConfigurationParameter ( "testParam" , "hello" , "imports-cleaner" , null , null , null , false ) ; java . lang . String output = org . apache . commons . io . FileUtils . readFileToString ( xml ) ; System . out . println ( output ) ; "<AssertPlaceHolder>" ; } finally { org . apache . commons . io . FileUtils . deleteDirectory ( aux ) ; } } addConfigurationParameter ( java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . String , java . lang . String , boolean ) { if ( ( param != null ) && ( value != null ) ) { org . walkmod . conf . providers . yml . AddConfigurationParameterYMLAction action = new org . walkmod . conf . providers . yml . AddConfigurationParameterYMLAction ( param , value , type , category , name , chain , this , recursive ) ; action . execute ( ) ; } }
|
org . junit . Assert . assertTrue ( ( ( output . contains ( "testParam" ) ) && ( output . contains ( "hello" ) ) ) )
|
canCRUDRoleAssignment ( ) { java . lang . String roleAssignmentName = com . microsoft . azure . management . resources . fluentcore . utils . SdkContext . randomUuid ( ) ; java . lang . String spName = com . microsoft . azure . management . resources . fluentcore . utils . SdkContext . randomResourceName ( "sp" , 20 ) ; com . microsoft . azure . management . graphrbac . ServicePrincipal sp = graphRbacManager . servicePrincipals ( ) . define ( spName ) . withNewApplication ( ( "http://" + spName ) ) . create ( ) ; com . microsoft . azure . management . resources . fluentcore . utils . SdkContext . sleep ( 15000 ) ; com . microsoft . azure . management . graphrbac . RoleAssignment roleAssignment = graphRbacManager . roleAssignments ( ) . define ( roleAssignmentName ) . forServicePrincipal ( sp ) . withBuiltInRole ( BuiltInRole . CONTRIBUTOR ) . withSubscriptionScope ( resourceManager . subscriptionId ( ) ) . create ( ) ; "<AssertPlaceHolder>" ; } create ( ) { createAsync ( ) . toBlocking ( ) . subscribe ( ) ; return this ; }
|
org . junit . Assert . assertNotNull ( roleAssignment )
|
testSerialization ( ) { org . jfree . chart . annotations . XYTextAnnotation a1 = new org . jfree . chart . annotations . XYTextAnnotation ( "Text" , 10.0 , 20.0 ) ; a1 . setOutlinePaint ( new java . awt . GradientPaint ( 1.0F , 2.0F , java . awt . Color . RED , 3.0F , 4.0F , java . awt . Color . BLUE ) ) ; org . jfree . chart . annotations . XYTextAnnotation a2 = ( ( org . jfree . chart . annotations . XYTextAnnotation ) ( org . jfree . chart . TestUtils . serialised ( a1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( java . lang . Object ) { java . lang . Object result = null ; java . io . ByteArrayOutputStream buffer = new java . io . ByteArrayOutputStream ( ) ; java . io . ObjectOutput out ; try { out = new java . io . ObjectOutputStream ( buffer ) ; out . writeObject ( original ) ; out . close ( ) ; java . io . ObjectInput in = new java . io . ObjectInputStream ( new java . io . ByteArrayInputStream ( buffer . toByteArray ( ) ) ) ; result = in . readObject ( ) ; in . close ( ) ; } catch ( java . io . IOException e ) { throw new java . lang . RuntimeException ( e ) ; } catch ( java . lang . ClassNotFoundException e ) { throw new java . lang . RuntimeException ( e ) ; } return result ; }
|
org . junit . Assert . assertEquals ( a1 , a2 )
|
firstValueShouldBeZero ( ) { org . ta4j . core . Indicator < org . ta4j . core . num . Num > indicator = getIndicator ( new org . ta4j . core . indicators . helpers . ClosePriceIndicator ( data ) , 14 ) ; "<AssertPlaceHolder>" ; } numOf ( java . lang . Number ) { return this . numFunction . apply ( number ) ; }
|
org . junit . Assert . assertEquals ( data . numOf ( 0 ) , indicator . getValue ( 0 ) )
|
test ( ) { System . out . println ( "---------Erstelle<sp>Job" ) ; org . kapott . hbci . GV . HBCIJob job = handler . newJob ( "---------Erstelle<sp>Job" 1 ) ; org . kapott . hbci . structures . Konto acc = new org . kapott . hbci . structures . Konto ( ) ; acc . blz = params . getProperty ( "value" 4 ) ; acc . number = params . getProperty ( "target_number" ) ; acc . name = "Kurt<sp>Mustermann" ; acc . bic = params . getProperty ( "target_bic" ) ; acc . iban = params . getProperty ( "---------Erstelle<sp>Job" 3 ) ; int source_acc_idx = java . lang . Integer . parseInt ( params . getProperty ( "source_account_idx" ) ) ; job . setParam ( "value" 1 , passport . getAccounts ( ) [ source_acc_idx ] ) ; job . setParam ( "---------Erstelle<sp>Job" 5 , acc ) ; java . lang . String value = params . getProperty ( "value" ) ; if ( value == null ) value = "value" 7 ; job . setParam ( "value" 8 , new org . kapott . hbci . structures . Value ( java . lang . Integer . parseInt ( value ) , "EUR" ) ) ; job . setParam ( "usage" , "value" 2 ) ; job . setParam ( "---------Erstelle<sp>Job" 2 , params . getProperty ( "---------Erstelle<sp>Job" 2 ) ) ; job . setParam ( "value" 0 , "value" 3 ) ; job . setParam ( "turnus" , "value" 9 ) ; job . setParam ( "---------Erstelle<sp>Job" 4 , "value" 9 ) ; job . setParam ( "value" 6 , params . getProperty ( "value" 6 ) ) ; System . out . println ( "value" 5 ) ; job . addToQueue ( ) ; org . kapott . hbci . status . HBCIExecStatus ret = handler . execute ( ) ; org . kapott . hbci . GV_Result . HBCIJobResult res = job . getJobResult ( ) ; System . out . println ( ( "----------Result:<sp>" + ( res . toString ( ) ) ) ) ; "<AssertPlaceHolder>" ; } isOK ( ) { return ( ( ( globStatus . getStatusCode ( ) ) != ( org . kapott . hbci . status . HBCIStatus . STATUS_ERR ) ) && ( ( jobStatus . getStatusCode ( ) ) != ( org . kapott . hbci . status . HBCIStatus . STATUS_ERR ) ) ) && ( ( ( globStatus . getStatusCode ( ) ) != ( org . kapott . hbci . status . HBCIStatus . STATUS_UNKNOWN ) ) || ( ( jobStatus . getStatusCode ( ) ) != ( org . kapott . hbci . status . HBCIStatus . STATUS_UNKNOWN ) ) ) ; }
|
org . junit . Assert . assertEquals ( "---------Erstelle<sp>Job" 0 , true , res . isOK ( ) )
|
findAll_RightResults ( ) { java . util . List < com . namespace . domain . UserGAE > userListToPersist = generateUsersAndPersistThem ( ) ; java . util . List < com . namespace . domain . UserGAE > userFromDatastoreList = this . dao . findAll ( ) ; "<AssertPlaceHolder>" ; compareIfList1ContainsList2Objects ( userListToPersist , userFromDatastoreList ) ; } findAll ( ) { com . googlecode . objectify . Objectify ofy = objectifyFactory . begin ( ) ; com . googlecode . objectify . Query < com . namespace . domain . Account > q = ofy . query ( com . namespace . domain . Account . class ) ; java . util . ArrayList < com . namespace . domain . Account > accounts = ( ( java . util . ArrayList < com . namespace . domain . Account > ) ( q . list ( ) ) ) ; com . namespace . repository . AccountDAOImpl . logger . info ( ( "retrieving<sp>the<sp>accounts<sp>from<sp>the<sp>datastore:<sp>" + ( accounts . toString ( ) ) ) ) ; return accounts ; }
|
org . junit . Assert . assertEquals ( userFromDatastoreList . size ( ) , userListToPersist . size ( ) )
|
testPureWildcardRegistration ( ) { dispatch . register ( "http://*/" , sampleHandler ) ; org . kaazing . net . auth . ChallengeHandler challengeHandler = dispatch . lookup ( new org . kaazing . net . auth . ChallengeRequest ( "http://foo.example.com:80" , "test_challenge<sp>SOME<sp>CHALLENGE<sp>STRING" ) ) ; "<AssertPlaceHolder>" ; } register ( java . lang . String , org . kaazing . net . auth . ChallengeHandler ) { if ( ( locationDescription == null ) || ( ( locationDescription . length ( ) ) == 0 ) ) { throw new java . lang . IllegalArgumentException ( "Must<sp>specify<sp>a<sp>location<sp>to<sp>handle<sp>challenges<sp>upon." ) ; } if ( challengeHandler == null ) { throw new java . lang . IllegalArgumentException ( "Must<sp>specify<sp>a<sp>handler<sp>to<sp>handle<sp>challenges." ) ; } addChallengeHandlerAtLocation ( locationDescription , challengeHandler ) ; return this ; }
|
org . junit . Assert . assertSame ( sampleHandler , challengeHandler )
|
test01createSupplierOrg ( ) { org . oscm . portal . PortalOrganizationWT . tester . visitPortal ( PortalPathSegments . CREATE_ORGANIZATION ) ; org . oscm . portal . PortalOrganizationWT . tester . writeValue ( PortalHtmlElements . CREATE_ORGANIZATION_INPUT_ADMINEMAIL , org . oscm . portal . PortalOrganizationWT . tester . getEmailAddress ( ) ) ; org . oscm . portal . PortalOrganizationWT . tester . writeValue ( PortalHtmlElements . CREATE_ORGANIZATION_INPUT_DESIRED_USERID , org . oscm . portal . PortalOrganizationWT . ORG_ADMIN ) ; org . oscm . portal . PortalOrganizationWT . tester . selectDropdown ( PortalHtmlElements . CREATE_ORGANIZATION_DROPDOWN_LANGUAGE , "en" ) ; org . oscm . portal . PortalOrganizationWT . tester . clickElement ( PortalHtmlElements . CREATE_ORGANIZATION_CHECKBOX_TPROVIDER ) ; org . oscm . portal . PortalOrganizationWT . tester . waitForElement ( org . openqa . selenium . By . id ( PortalHtmlElements . CREATE_ORGANIZATION_FORM_UPLOADIMAGE ) , 10 ) ; org . oscm . portal . PortalOrganizationWT . tester . clickElement ( PortalHtmlElements . CREATE_ORGANIZATION_CHECKBOX_SUPPLIER ) ; org . oscm . portal . PortalOrganizationWT . tester . waitForElement ( org . openqa . selenium . By . id ( PortalHtmlElements . CREATE_ORGANIZATION_INPUT_REVENUESHARE ) , 10 ) ; org . oscm . portal . PortalOrganizationWT . tester . writeValue ( PortalHtmlElements . CREATE_ORGANIZATION_INPUT_REVENUESHARE , "5" ) ; org . oscm . portal . PortalOrganizationWT . tester . writeValue ( PortalHtmlElements . CREATE_ORGANIZATION_INPUT_ORGNAME , org . oscm . portal . PortalOrganizationWT . ORG ) ; org . oscm . portal . PortalOrganizationWT . tester . writeValue ( PortalHtmlElements . CREATE_ORGANIZATION_INPUT_ORGEMAIL , org . oscm . portal . PortalOrganizationWT . tester . getEmailAddress ( ) ) ; org . oscm . portal . PortalOrganizationWT . tester . selectDropdown ( PortalHtmlElements . CREATE_ORGANIZATION_DROPDOWN_ORGLOCALE , "en" ) ; org . oscm . portal . PortalOrganizationWT . tester . writeValue ( PortalHtmlElements . CREATE_ORGANIZATION_INPUT_ORGPHONE , "123" ) ; org . oscm . portal . PortalOrganizationWT . tester . writeValue ( PortalHtmlElements . CREATE_ORGANIZATION_INPUT_ORGURL , "http://abc.de" ) ; org . oscm . portal . PortalOrganizationWT . tester . writeValue ( PortalHtmlElements . CREATE_ORGANIZATION_INPUT_ORGADDRESS , "ADDRESS" ) ; org . oscm . portal . PortalOrganizationWT . tester . selectDropdown ( PortalHtmlElements . CREATE_ORGANIZATION_DROPDOWN_ORGCOUNTRY , "DE" ) ; org . oscm . portal . PortalOrganizationWT . tester . clickElement ( PortalHtmlElements . CREATE_ORGANIZATION_BUTTON_SAVE ) ; "<AssertPlaceHolder>" ; PlaygroundSuiteTest . supplierOrgName = org . oscm . portal . PortalOrganizationWT . ORG ; PlaygroundSuiteTest . supplierOrgId = org . oscm . portal . PortalOrganizationWT . tester . readInfoMessage ( ) . split ( "<sp>" ) [ 2 ] ; PlaygroundSuiteTest . supplierOrgAdminId = org . oscm . portal . PortalOrganizationWT . ORG_ADMIN ; PlaygroundSuiteTest . supplierOrgAdminMail = org . oscm . portal . PortalOrganizationWT . tester . getEmailAddress ( ) ; } getExecutionResult ( ) { return false ; }
|
org . junit . Assert . assertTrue ( org . oscm . portal . PortalOrganizationWT . tester . getExecutionResult ( ) )
|
testLoadFromXML ( ) { org . geoserver . wps . WPSInfo wpsInfo = loadFromXml ( "wps-test.xml" ) ; "<AssertPlaceHolder>" ; } loadFromXml ( java . lang . String ) { org . geoserver . config . util . XStreamPersisterFactory factory = org . geoserver . platform . GeoServerExtensions . bean ( org . geoserver . config . util . XStreamPersisterFactory . class ) ; org . geoserver . config . util . XStreamPersister xp = factory . createXMLPersister ( ) ; org . geoserver . wps . WPSXStreamLoader loader = org . geoserver . platform . GeoServerExtensions . bean ( org . geoserver . wps . WPSXStreamLoader . class ) ; loader . initXStreamPersister ( xp , getGeoServer ( ) ) ; try ( java . io . InputStream is = getClass ( ) . getResourceAsStream ( resource ) ) { return xp . load ( is , org . geoserver . wps . WPSInfo . class ) ; } }
|
org . junit . Assert . assertNotNull ( wpsInfo )
|
collisionCourseTestMethodOne ( ) { shell . addResource ( "${hiveconf:hadoop.tmp.dir}/foo/bar/data1.csv" , "1\n2\n3" ) ; shell . addResource ( "1\n2\n3" 4 , "4\n5" ) ; shell . addSetupScript ( "1\n2\n3" 5 ) ; shell . addSetupScript ( ( "" + ( ( ( "<sp>CREATE<sp>table<sp>foo.bar(id<sp>int)" + "<sp>ROW<sp>FORMAT<sp>DELIMITED<sp>FIELDS<sp>TERMINATED<sp>BY<sp>','" ) + "<sp>STORED<sp>AS<sp>TEXTFILE" ) + "1\n2\n3" 2 ) ) ) ; shell . start ( ) ; java . util . List < java . lang . String > actual = shell . executeQuery ( "1\n2\n3" 1 ) ; java . util . List < java . lang . String > expected = java . util . Arrays . asList ( "1\n2\n3" 0 , "1\n2\n3" 3 , "3" , "4" , "5" ) ; "<AssertPlaceHolder>" ; } executeQuery ( java . nio . file . Path ) { return executeQuery ( java . nio . charset . Charset . defaultCharset ( ) , script ) ; }
|
org . junit . Assert . assertEquals ( new java . util . HashSet ( expected ) , new java . util . HashSet ( actual ) )
|
targetType_whenPreferClients ( ) { list . add ( new com . hazelcast . simulator . coordinator . registry . WorkerData ( newParameters ( agent1 , 1 , "javaclient" , "maven=3.6" ) ) ) ; list . add ( new com . hazelcast . simulator . coordinator . registry . WorkerData ( newParameters ( agent1 , 2 , "member" , "maven=3.7" ) ) ) ; list . add ( new com . hazelcast . simulator . coordinator . registry . WorkerData ( newParameters ( agent1 , 3 , "litemember" , "maven=3.8" ) ) ) ; list . add ( new com . hazelcast . simulator . coordinator . registry . WorkerData ( newParameters ( agent1 , 4 , "member" , "maven=3.7" ) ) ) ; java . util . List < com . hazelcast . simulator . coordinator . registry . WorkerData > result = new com . hazelcast . simulator . coordinator . registry . WorkerQuery ( ) . setTargetType ( TargetType . CLIENT ) . execute ( list ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { return get ( name , null ) ; }
|
org . junit . Assert . assertEquals ( asList ( list . get ( 0 ) , list . get ( 2 ) ) , result )
|
doesNotMatchDifferentValues ( ) { matcher . withEntry ( "foo" , "bar" ) ; org . mockserver . matchers . MultiValueMapMatcher mapMatcher = new org . mockserver . matchers . MultiValueMapMatcher ( new org . mockserver . logging . MockServerLogger ( ) , matcher ) ; matched . withEntry ( "foo" , "bar2" ) ; "<AssertPlaceHolder>" ; } matches ( org . mockserver . model . HttpRequest , java . lang . String ) { boolean result = false ; if ( ( xpathExpression ) == null ) { mockServerLogger . trace ( context , ( ( ( "Attempting<sp>match<sp>against<sp>null<sp>XPath<sp>Expression<sp>for<sp>[" + matched ) + "]" ) + ( new java . lang . RuntimeException ( ( ( "Attempting<sp>match<sp>against<sp>null<sp>XPath<sp>Expression<sp>for<sp>[" + matched ) + "]" ) ) ) ) ) ; } else if ( matcher . equals ( matched ) ) { result = true ; } else if ( matched != null ) { try { result = ( ( java . lang . Boolean ) ( xpathExpression . evaluate ( stringToXmlDocumentParser . buildDocument ( matched , new org . mockserver . matchers . StringToXmlDocumentParser . ErrorLogger ( ) { @ org . mockserver . matchers . Override public void logError ( final java . lang . String matched , final java . lang . Exception exception ) { mockServerLogger . warn ( context , ( ( ( ( "SAXParseException<sp>while<sp>performing<sp>match<sp>between<sp>[" + ( matcher ) ) + "]<sp>and<sp>[" ) + matched ) + "]" ) , exception ) ; } } ) , XPathConstants . BOOLEAN ) ) ) ; } catch ( java . lang . Exception e ) { mockServerLogger . trace ( context , ( ( ( ( ( "Error<sp>while<sp>matching<sp>xpath<sp>[" + ( matcher ) ) + "]<sp>against<sp>string<sp>[" ) + matched ) + "]<sp>assuming<sp>no<sp>match<sp>-<sp>" ) + ( e . getMessage ( ) ) ) ) ; } } if ( ! result ) { mockServerLogger . trace ( "Failed<sp>to<sp>match<sp>[{}]<sp>with<sp>[{}]" , matched , matcher ) ; } return ( not ) != result ; }
|
org . junit . Assert . assertFalse ( mapMatcher . matches ( null , matched ) )
|
testUnknownAppInRM ( ) { org . apache . hadoop . mapreduce . v2 . api . MRClientProtocol historyServerProxy = mock ( org . apache . hadoop . mapreduce . v2 . api . MRClientProtocol . class ) ; when ( historyServerProxy . getJobReport ( getJobReportRequest ( ) ) ) . thenReturn ( getJobReportResponse ( ) ) ; org . apache . hadoop . mapred . ClientServiceDelegate clientServiceDelegate = getClientServiceDelegate ( historyServerProxy , getRMDelegate ( ) ) ; org . apache . hadoop . mapreduce . JobStatus jobStatus = clientServiceDelegate . getJobStatus ( oldJobId ) ; "<AssertPlaceHolder>" ; } getJobStatus ( org . apache . hadoop . mapreduce . JobID ) { org . apache . hadoop . mapreduce . JobStatus status = clientCache . getClient ( jobID ) . getJobStatus ( jobID ) ; return status ; }
|
org . junit . Assert . assertNotNull ( jobStatus )
|
testGetBackSlashForRegex ( ) { try { org . talend . dq . dbms . DbmsLanguage dbms = getMysqlDbmsLanguage ( ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( e . getMessage ( ) ) ; } } getBackSlashForRegex ( ) { return "\\\\" ; }
|
org . junit . Assert . assertNotNull ( dbms . getBackSlashForRegex ( ) )
|
shouldAssignAndCastViewContextToFieldsAnnotatedWithContext ( ) { class SpecificContext extends com . redhat . darcy . ui . testing . doubles . DummyContext { } class TestView extends com . redhat . darcy . ui . AbstractView { @ com . redhat . darcy . ui . annotations . Context private SpecificContext castedContext ; } TestView testView = new TestView ( ) ; SpecificContext specificContext = new SpecificContext ( ) ; testView . setContext ( specificContext ) ; "<AssertPlaceHolder>" ; } getContext ( ) { return context ; }
|
org . junit . Assert . assertEquals ( testView . getContext ( ) , testView . castedContext )
|
testSetClusterNode ( ) { final org . bonitasoft . engine . queriablelogger . model . builder . SQueriableLogBuilder builder = fact . createNewInstance ( ) ; builder . clusterNode ( "node1" ) . severity ( SQueriableLogSeverity . BUSINESS ) ; builder . actionType ( "variable_update" ) . actionScope ( "myVar" ) . rawMessage ( "successFull" ) . actionStatus ( 1 ) ; final org . bonitasoft . engine . queriablelogger . model . SQueriableLog queriableLog = builder . done ( ) ; "<AssertPlaceHolder>" ; } getClusterNode ( ) { final org . bonitasoft . engine . session . model . SSession session = getSession ( ) ; if ( session != null ) { return session . getClusterNode ( ) ; } return "" ; }
|
org . junit . Assert . assertEquals ( "node1" , queriableLog . getClusterNode ( ) )
|
testAvroToDiFloat ( ) { java . lang . String expectedType = "id_Float" ; org . apache . avro . Schema fieldSchema = org . talend . daikon . avro . AvroUtils . _float ( ) ; "<AssertPlaceHolder>" ; } avroToDi ( org . apache . avro . Schema ) { org . apache . avro . Schema typeSchema = org . talend . daikon . avro . AvroUtils . unwrapIfNullable ( fieldSchema ) ; java . lang . String logicalType = org . talend . daikon . avro . LogicalTypeUtils . getLogicalTypeName ( typeSchema ) ; if ( logicalType != null ) { return org . talend . codegen . converter . TypeConverter . getDiByLogicalType ( logicalType ) ; } java . lang . String javaClass = typeSchema . getProp ( SchemaConstants . JAVA_CLASS_FLAG ) ; if ( javaClass != null ) { return org . talend . codegen . converter . TypeConverter . getDiByJavaClass ( javaClass ) ; } return org . talend . codegen . converter . TypeConverter . getDiByAvroType ( typeSchema . getType ( ) ) ; }
|
org . junit . Assert . assertEquals ( expectedType , org . talend . codegen . converter . TypeConverter . avroToDi ( fieldSchema ) )
|
test ( ) { org . folio . okapi . common . OkapiToken t = new org . folio . okapi . common . OkapiToken ( ) ; io . vertx . core . json . JsonObject o = new io . vertx . core . json . JsonObject ( ) ; o . put ( "tenant" , "test-lib" ) ; o . put ( "foo" , "bar" ) ; java . lang . String s = o . encodePrettily ( ) ; byte [ ] encodedBytes = java . util . Base64 . getEncoder ( ) . encode ( s . getBytes ( ) ) ; java . lang . String e = new java . lang . String ( encodedBytes ) ; java . lang . String tokenStr = ( "method." + e ) + ".trail" ; t . setToken ( tokenStr ) ; "<AssertPlaceHolder>" ; } getTenant ( ) { return tenant ; }
|
org . junit . Assert . assertEquals ( "test-lib" , t . getTenant ( ) )
|
testDecodeTripletFirst ( ) { java . util . List < java . lang . String > encoded = java . util . Arrays . asList ( opennlp . tools . namefind . BioCodecTest . B_START , opennlp . tools . namefind . BioCodecTest . B_CONTINUE , opennlp . tools . namefind . BioCodecTest . B_CONTINUE , opennlp . tools . namefind . BioCodecTest . OTHER ) ; opennlp . tools . util . Span [ ] expected = new opennlp . tools . util . Span [ ] { new opennlp . tools . util . Span ( 0 , 3 , opennlp . tools . namefind . BioCodecTest . B_TYPE ) } ; opennlp . tools . util . Span [ ] actual = opennlp . tools . namefind . BioCodecTest . codec . decode ( encoded ) ; "<AssertPlaceHolder>" ; } decode ( java . util . List ) { int start = - 1 ; int end = - 1 ; java . util . List < opennlp . tools . util . Span > spans = new java . util . ArrayList ( c . size ( ) ) ; for ( int li = 0 ; li < ( c . size ( ) ) ; li ++ ) { java . lang . String chunkTag = c . get ( li ) ; if ( chunkTag . endsWith ( opennlp . tools . namefind . BioCodec . START ) ) { if ( start != ( - 1 ) ) { spans . add ( new opennlp . tools . util . Span ( start , end , opennlp . tools . namefind . BioCodec . extractNameType ( c . get ( ( li - 1 ) ) ) ) ) ; } start = li ; end = li + 1 ; } else if ( chunkTag . endsWith ( opennlp . tools . namefind . BioCodec . CONTINUE ) ) { end = li + 1 ; } else if ( chunkTag . endsWith ( opennlp . tools . namefind . BioCodec . OTHER ) ) { if ( start != ( - 1 ) ) { spans . add ( new opennlp . tools . util . Span ( start , end , opennlp . tools . namefind . BioCodec . extractNameType ( c . get ( ( li - 1 ) ) ) ) ) ; start = - 1 ; end = - 1 ; } } } if ( start != ( - 1 ) ) { spans . add ( new opennlp . tools . util . Span ( start , end , opennlp . tools . namefind . BioCodec . extractNameType ( c . get ( ( ( c . size ( ) ) - 1 ) ) ) ) ) ; } return spans . toArray ( new opennlp . tools . util . Span [ spans . size ( ) ] ) ; }
|
org . junit . Assert . assertArrayEquals ( expected , actual )
|
testSingleLongRandom ( ) { java . nio . ByteBuffer buffer = java . nio . ByteBuffer . allocate ( Long . BYTES ) ; java . util . Random random = new java . util . Random ( ) ; for ( long i = 0 ; i < 1000 ; i ++ ) { long x = random . nextLong ( ) ; buffer . putLong ( 0 , x ) ; "<AssertPlaceHolder>" ; } } hash32 ( long ) { return org . apache . hive . common . util . Murmur3 . hash32 ( l0 , org . apache . hive . common . util . Murmur3 . DEFAULT_SEED ) ; }
|
org . junit . Assert . assertEquals ( org . apache . hive . common . util . Murmur3 . hash32 ( buffer . array ( ) ) , org . apache . hive . common . util . Murmur3 . hash32 ( x ) )
|
testDefaultFormatRealVectorImpl ( ) { java . util . Locale defaultLocal = java . util . Locale . getDefault ( ) ; java . util . Locale . setDefault ( getLocale ( ) ) ; org . hipparchus . linear . ArrayRealVector c = new org . hipparchus . linear . ArrayRealVector ( new double [ ] { 232.22222222222 , - 342.3333333333 , 432.44444444444 } ) ; java . lang . String expected = ( ( ( ( ( "{232" + ( getDecimalCharacter ( ) ) ) + "2222222222;<sp>-342" ) + ( getDecimalCharacter ( ) ) ) + "3333333333;<sp>432" ) + ( getDecimalCharacter ( ) ) ) + "4444444444}" ; java . lang . String actual = new org . hipparchus . linear . RealVectorFormat ( ) . format ( c ) ; "<AssertPlaceHolder>" ; java . util . Locale . setDefault ( defaultLocal ) ; } format ( double ) { if ( d != d ) { return "Double.NaN," ; } else { return ( ( d >= 0 ? "+" : "" ) + ( java . lang . Double . toString ( d ) ) ) + "d," ; } }
|
org . junit . Assert . assertEquals ( expected , actual )
|
chain_order_enforced ( ) { com . amazon . ask . request . exception . handler . GenericExceptionHandler < com . amazon . ask . sdk . TestHandlerInput , com . amazon . ask . sdk . TestHandlerOutput > handler1 = mock ( com . amazon . ask . request . exception . handler . GenericExceptionHandler . class ) ; when ( handler1 . canHandle ( any ( ) , any ( ) ) ) . thenReturn ( true ) ; when ( handler1 . handle ( any ( ) , any ( ) ) ) . thenReturn ( new com . amazon . ask . sdk . TestHandlerOutput ( ) ) ; com . amazon . ask . request . exception . handler . GenericExceptionHandler < com . amazon . ask . sdk . TestHandlerInput , com . amazon . ask . sdk . TestHandlerOutput > handler2 = mock ( com . amazon . ask . request . exception . handler . GenericExceptionHandler . class ) ; when ( handler2 . canHandle ( any ( ) , any ( ) ) ) . thenReturn ( true ) ; when ( handler2 . handle ( any ( ) , any ( ) ) ) . thenReturn ( new com . amazon . ask . sdk . TestHandlerOutput ( ) ) ; com . amazon . ask . request . exception . mapper . GenericExceptionMapper < com . amazon . ask . sdk . TestHandlerInput , com . amazon . ask . sdk . TestHandlerOutput > chain = com . amazon . ask . request . exception . mapper . impl . BaseExceptionMapper . forTypes ( com . amazon . ask . sdk . TestHandlerInput . class , com . amazon . ask . sdk . TestHandlerOutput . class ) . addExceptionHandler ( handler1 ) . addExceptionHandler ( handler2 ) . build ( ) ; "<AssertPlaceHolder>" ; } getHandler ( Input , java . lang . Throwable ) { java . lang . Throwable exception = ( ex instanceof java . lang . ReflectiveOperationException ) ? ex . getCause ( ) : ex ; for ( com . amazon . ask . request . exception . handler . GenericExceptionHandler < Input , Output > exceptionHandler : exceptionHandlers ) { if ( exceptionHandler . canHandle ( input , exception ) ) { return java . util . Optional . of ( exceptionHandler ) ; } } return java . util . Optional . empty ( ) ; }
|
org . junit . Assert . assertEquals ( chain . getHandler ( new com . amazon . ask . sdk . TestHandlerInput ( ) , new java . lang . IllegalArgumentException ( ) ) . get ( ) , handler1 )
|
writeWithGarbageDataDoesNothing ( ) { when ( this . patient . < org . phenotips . data . Medication > getData ( MedicationController . DATA_NAME ) ) . thenReturn ( new org . phenotips . data . IndexedPatientData ( org . phenotips . data . internal . controller . MedicationController . DATA_NAME , java . util . Collections . singletonList ( null ) ) ) ; org . json . JSONObject json = new org . json . JSONObject ( ) ; this . component . writeJSON ( this . patient , json ) ; "<AssertPlaceHolder>" ; } writeJSON ( org . phenotips . data . Patient , org . json . JSONObject ) { writeJSON ( patient , json , null ) ; }
|
org . junit . Assert . assertEquals ( 0 , json . length ( ) )
|
getLongValue_A$Crontab ( ) { java . lang . String arg0 = "123sec" ; long actual = parser . getLongValue ( arg0 ) ; long expected = 123L ; "<AssertPlaceHolder>" ; } getLongValue ( java . lang . String ) { return java . lang . Long . valueOf ( number . replaceAll ( "[^\\d]+" , "" ) ) ; }
|
org . junit . Assert . assertEquals ( expected , actual )
|
testConvertAll ( ) { java . lang . String name = "first<sp>blood" ; java . lang . String abbrName = "fb" ; org . lnu . is . domain . paper . usage . PaperUsage expected = new org . lnu . is . domain . paper . usage . PaperUsage ( ) ; expected . setName ( name ) ; expected . setAbbrName ( abbrName ) ; org . lnu . is . resource . paper . usage . PaperUsageResource source = new org . lnu . is . resource . paper . usage . PaperUsageResource ( ) ; source . setName ( name ) ; source . setAbbrName ( abbrName ) ; java . util . List < org . lnu . is . resource . paper . usage . PaperUsageResource > sources = java . util . Arrays . asList ( source ) ; java . util . List < org . lnu . is . domain . paper . usage . PaperUsage > expecteds = java . util . Arrays . asList ( expected ) ; java . util . List < org . lnu . is . domain . paper . usage . PaperUsage > actuals = unit . convertAll ( sources ) ; "<AssertPlaceHolder>" ; } convertAll ( java . util . List ) { return convertAll ( sources , new java . util . ArrayList < TARGET > ( sources . size ( ) ) ) ; }
|
org . junit . Assert . assertEquals ( expecteds , actuals )
|
leesAlsPersoonCacheWelEnAfnemerindicatiesCacheNietBestaat ( ) { final java . lang . Integer persoonId = 2000001 ; final org . springframework . transaction . TransactionStatus transactieStatus = zorgDatBlobBestaatInTransactie ( persoonId ) ; transactionManager . commit ( transactieStatus ) ; final nl . bzk . brp . model . hisvolledig . kern . PersoonHisVolledig persoonUitCache = blobifierService . leesBlob ( persoonId ) ; "<AssertPlaceHolder>" ; } getAfnemerindicaties ( ) { return afnemerindicaties ; }
|
org . junit . Assert . assertThat ( persoonUitCache . getAfnemerindicaties ( ) . size ( ) , org . hamcrest . Matchers . is ( 2 ) )
|
testBerichtException ( ) { nl . bzk . brp . bevraging . ws . service . brp . BerichtException e = new nl . bzk . brp . bevraging . ws . service . brp . BerichtException ( 2L ) ; "<AssertPlaceHolder>" ; } getBerichtId ( ) { return berichtId ; }
|
org . junit . Assert . assertEquals ( 2L , e . getBerichtId ( ) )
|
testCase88 ( ) { org . evosuite . testcase . DefaultTestCase tc = buildTestCase88 ( ) ; java . util . List < org . evosuite . symbolic . BranchCondition > branch_conditions = executeTest ( tc ) ; "<AssertPlaceHolder>" ; } size ( ) { return theTest . size ( ) ; }
|
org . junit . Assert . assertEquals ( 0 , branch_conditions . size ( ) )
|
check_update_sqlTimestamp ( ) { org . nutz . dao . test . normal . SupportedFieldTypeTest . EntityTypes exp = new org . nutz . dao . test . normal . SupportedFieldTypeTest . EntityTypes ( ) ; exp . name = "T" ; java . sql . Timestamp tm = new java . sql . Timestamp ( java . lang . System . currentTimeMillis ( ) ) ; exp . sqlDT = tm ; dao . insert ( exp ) ; exp = dao . fetch ( org . nutz . dao . test . normal . SupportedFieldTypeTest . EntityTypes . class , "T" ) ; "<AssertPlaceHolder>" ; } getTime ( ) { return time ; }
|
org . junit . Assert . assertEquals ( ( ( tm . getTime ( ) ) / 1000 ) , ( ( exp . sqlDT . getTime ( ) ) / 1000 ) )
|
data0 ( ) { final java . lang . String query = "let<sp>$a<sp>:=<sp><a><b>1</b><b>1</b></a><sp>" + "for<sp>$b<sp>in<sp>$a/b[data()<sp>=<sp>'1']<sp>return<sp>$b" ; final org . xmldb . api . base . ResourceSet result = org . exist . xquery . XQueryFunctionsTest . existEmbeddedServer . executeQuery ( query ) ; "<AssertPlaceHolder>" ; } getSize ( ) { return model . size ( ) ; }
|
org . junit . Assert . assertEquals ( 2 , result . getSize ( ) )
|
testGetLocatorsForReRollSameAsStorageGranularity ( ) { boolean isReroll = true ; com . rackspacecloud . blueflood . rollup . SlotKey destSlotKey = com . rackspacecloud . blueflood . rollup . SlotKey . of ( Granularity . MIN_20 , 0 , TEST_SHARD ) ; com . rackspacecloud . blueflood . rollup . Granularity delayedMetricsRerollGranularity = com . rackspacecloud . blueflood . rollup . Granularity . MIN_60 ; com . rackspacecloud . blueflood . rollup . Granularity delayedMetricsStorageGranularity = com . rackspacecloud . blueflood . rollup . Granularity . MIN_20 ; com . rackspacecloud . blueflood . service . LocatorFetchRunnable lfrunnable = new com . rackspacecloud . blueflood . service . LocatorFetchRunnable ( scheduleCtx , destSlotKey , rollupReadExecutor , rollupWriteExecutor ) ; java . util . HashSet < com . rackspacecloud . blueflood . types . Locator > delayedLocators = new java . util . HashSet < com . rackspacecloud . blueflood . types . Locator > ( ) { { add ( locators . get ( 0 ) ) ; } } ; when ( delayedLocatorIO . getLocators ( com . rackspacecloud . blueflood . rollup . SlotKey . of ( Granularity . MIN_20 , 0 , TEST_SHARD ) ) ) . thenReturn ( delayedLocators ) ; java . util . Set < com . rackspacecloud . blueflood . types . Locator > locatorsForRollup = lfrunnable . getLocators ( executionContext , isReroll , delayedMetricsRerollGranularity , delayedMetricsStorageGranularity ) ; "<AssertPlaceHolder>" ; } size ( ) { return array . length ; }
|
org . junit . Assert . assertEquals ( delayedLocators . size ( ) , locatorsForRollup . size ( ) )
|
multipleEventsCase001 ( ) { processedUsages = usageRollupProcessor . processRecords ( allUsageRecordsInOrder , hourToRollup , lbsActiveDuringHour ) ; "<AssertPlaceHolder>" ; org . openstack . atlas . service . domain . entities . Usage actualUsage = processedUsages . get ( 0 ) ; org . openstack . atlas . usagerefactor . junit . AssertUsage . hasValues ( null , 1234 , 1234 , 50L , 0L , 100L , 0L , 0.5 , 0.0 , "2013-04-10<sp>20:23:59" , "2013-04-10<sp>20:24:21" , 2 , 1 , 0 , org . openstack . atlas . usagerefactor . CREATE_LOADBALANCER . name ( ) , 0 , true , null , actualUsage ) ; actualUsage = processedUsages . get ( 1 ) ; org . openstack . atlas . usagerefactor . junit . AssertUsage . hasValues ( null , 1234 , 1234 , 50L , 50L , 100L , 100L , 1.0 , 1.0 , "2013-04-10<sp>20:24:21" , "2013-04-10<sp>20:24:59" , 1 , 1 , 5 , org . openstack . atlas . usagerefactor . SSL_MIXED_ON . name ( ) , 0 , true , null , actualUsage ) ; actualUsage = processedUsages . get ( 2 ) ; org . openstack . atlas . usagerefactor . junit . AssertUsage . hasValues ( null , 1234 , 1234 , 0L , 50L , 0L , 100L , 0.0 , 1.0 , "2013-04-10<sp>20:24:59" , "2013-04-10<sp>20:25:21" , 1 , 1 , 1 , org . openstack . atlas . usagerefactor . SSL_ONLY_ON . name ( ) , 0 , true , null , actualUsage ) ; actualUsage = processedUsages . get ( 3 ) ; org . openstack . atlas . usagerefactor . junit . AssertUsage . hasValues ( null , 1234 , 1234 , 50L , 0L , 100L , 0L , 1.0 , 0.0 , "2013-04-10<sp>20:25:21" , "2013-04-10<sp>20:25:59" , 1 , 1 , 0 , org . openstack . atlas . usagerefactor . SSL_OFF . name ( ) , 0 , true , null , actualUsage ) ; actualUsage = processedUsages . get ( 4 ) ; org . openstack . atlas . usagerefactor . junit . AssertUsage . hasValues ( null , 1234 , 1234 , 0L , 0L , 0L , 0L , 0.0 , 0.0 , "2013-04-10<sp>20:25:59" , "2013-04-10<sp>20:25:59" , 0 , 0 , 0 , org . openstack . atlas . usagerefactor . DELETE_LOADBALANCER . name ( ) , 0 , true , null , actualUsage ) ; } size ( ) { return size ; }
|
org . junit . Assert . assertEquals ( 5 , processedUsages . size ( ) )
|
shouldNotEvaluateToEqualDifferentId ( ) { final org . apache . tinkerpop . gremlin . structure . util . reference . ReferenceVertex originalMarko = org . apache . tinkerpop . gremlin . structure . util . reference . ReferenceFactory . detach ( g . V ( convertToVertexId ( "marko" ) ) . next ( ) ) ; final org . apache . tinkerpop . gremlin . structure . Vertex secondMarko = graph . addVertex ( "name" , "marko" , "age" , 29 ) ; "<AssertPlaceHolder>" ; } detach ( org . apache . tinkerpop . gremlin . structure . Vertex ) { return vertex instanceof org . apache . tinkerpop . gremlin . structure . util . reference . ReferenceVertex ? ( ( org . apache . tinkerpop . gremlin . structure . util . reference . ReferenceVertex ) ( vertex ) ) : new org . apache . tinkerpop . gremlin . structure . util . reference . ReferenceVertex ( vertex ) ; }
|
org . junit . Assert . assertFalse ( org . apache . tinkerpop . gremlin . structure . util . reference . ReferenceFactory . detach ( secondMarko ) . equals ( originalMarko ) )
|
shouldParseDateExtendFormat ( ) { java . util . Calendar parseIso8601 = iso8601 . toCalendar ( "1982-06-10" ) ; java . util . Calendar date = java . util . GregorianCalendar . getInstance ( java . util . TimeZone . getTimeZone ( "GMT" ) ) ; date . set ( 1982 , 5 , 10 , 0 , 0 , 0 ) ; date . set ( Calendar . MILLISECOND , 0 ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { br . com . caelum . vraptor . proxy . MethodInvocation < T > handler = new br . com . caelum . vraptor . proxy . MethodInvocation < T > ( ) { public java . lang . Object intercept ( java . lang . Object proxy , java . lang . reflect . Method method , java . lang . Object [ ] args , br . com . caelum . vraptor . proxy . SuperMethod superMethod ) { boolean alreadySetTheStrategy = ! ( strategy . getClass ( ) . equals ( br . com . caelum . vraptor . http . route . NoStrategy . class ) ) ; if ( alreadySetTheStrategy ) { return null ; } is ( type , method ) ; return null ; } } ; return proxifier . proxify ( type , handler ) ; }
|
org . junit . Assert . assertThat ( parseIso8601 , org . hamcrest . Matchers . is ( date ) )
|
shouldBeFalseIfPropertyExistsButisInvalid ( ) { java . lang . System . setProperty ( "foo.bar" , "foobar" ) ; "<AssertPlaceHolder>" ; } isActive ( org . togglz . core . repository . FeatureState , org . togglz . core . user . FeatureUser ) { return true ; }
|
org . junit . Assert . assertFalse ( strategy . isActive ( state , user ) )
|
initialize_A$ClassMeta ( ) { org . junithelper . core . config . Configuration config = new org . junithelper . core . config . Configuration ( ) ; org . junithelper . core . extractor . ArgTypeMetaExtractor target = new org . junithelper . core . extractor . ArgTypeMetaExtractor ( config ) ; org . junithelper . core . meta . ClassMeta classMeta = mock ( org . junithelper . core . meta . ClassMeta . class ) ; org . junithelper . core . extractor . ArgTypeMetaExtractor actual = target . initialize ( classMeta ) ; org . junithelper . core . extractor . ArgTypeMetaExtractor expected = target ; "<AssertPlaceHolder>" ; } initialize ( org . eclipse . jface . preference . IPreferenceStore ) { if ( store == null ) { store = org . junithelper . plugin . Activator . getDefault ( ) . getPreferenceStore ( ) ; } directoryPathOfProductSourceCode = store . getString ( Preference . Common . srcMainPath ) ; directoryPathOfTestSourceCode = store . getString ( Preference . Common . srcTestPath ) ; outputFileEncoding = store . getString ( Preference . Common . outputFileEncoding ) ; lineBreakPolicy = store . getString ( Preference . Common . lineBreakPolicy ) ; useSoftTabs = store . getBoolean ( Preference . Common . useSoftTabs ) ; softTabSize = store . getInt ( Preference . Common . softTabSize ) ; isTestMethodNameArgsRequired = store . getBoolean ( Preference . TestMethodGen . enabledArgs ) ; isTestMethodNameReturnRequired = store . getBoolean ( Preference . TestMethodGen . enabledReturn ) ; isExceptionPatternRequired = store . getBoolean ( Preference . TestMethodGen . enabledException ) ; isTemplateImplementationRequired = store . getBoolean ( Preference . TestMethodGen . enabledTestMethodSampleImpl ) ; isPublicRequired = store . getBoolean ( Preference . TestMethodGen . includePublic ) ; isProtectedRequired = store . getBoolean ( Preference . TestMethodGen . includeProtected ) ; isPackageLocalRequired = store . getBoolean ( Preference . TestMethodGen . includePackageLocal ) ; isAccessorExcluded = store . getBoolean ( Preference . TestMethodGen . excludesAccessors ) ; isMockJMock2 = org . junithelper . plugin . page . PreferenceLoader . isUsingJMock2 ( store ) ; isMockEasyMock = org . junithelper . plugin . page . PreferenceLoader . isUsingEasyMock ( store ) ; isMockMockito = org . junithelper . plugin . page . PreferenceLoader . isUsingMockito ( store ) ; isMockJMockit = org . junithelper . plugin . page . PreferenceLoader . isUsingJMockit ( store ) ; isArrangeActAssertCommentsRequired = org . junithelper . plugin . page . PreferenceLoader . isCommentsArrangeActAssert ( store ) ; isGivenWhenThenCommentsRequired = org . junithelper . plugin . page . PreferenceLoader . isCommentsGivenWhenThen ( store ) ; java . lang . String version = store . getString ( Preference . TestClassGen . junitVersion ) ; isJUnitVersion3 = version . equals ( Preference . TestClassGen . junitVersion3 ) ; isJUnitVersion4 = version . equals ( Preference . TestClassGen . junitVersion4 ) ; testMethodDelimiter = store . getString ( Preference . TestMethodGen . delimiter ) ; testMethodArgsPrefix = store . getString ( Preference . TestMethodGen . argsPrefix ) ; testMethodArgsDelimiter = store . getString ( Preference . TestMethodGen . argsDelimiter ) ; testMethodReturnPrefix = store . getString ( Preference . TestMethodGen . returnPrefix ) ; testMethodReturnDelimiter = store . getString ( Preference . TestMethodGen . returnDelimiter ) ; testMethodExceptionPrefix = store . getString ( Preference . TestMethodGen . exceptionPrefix ) ; testMethodExceptionDelimiter = store . getString ( Preference . TestMethodGen . exceptionDelimiter ) ; classToExtend = store . getString ( Preference . TestClassGen . classToExtend ) ; }
|
org . junit . Assert . assertEquals ( expected , actual )
|
shouldAggregateWithTuple2BinaryOperator ( ) { final java . lang . String property1 = "property<sp>1" ; final java . lang . String property2 = "property<sp>2" ; final java . util . function . BinaryOperator func1 = new uk . gov . gchq . gaffer . function . ExampleTuple2BinaryOperator ( ) ; final uk . gov . gchq . gaffer . data . element . function . ElementAggregator aggregator = new uk . gov . gchq . gaffer . data . element . function . ElementAggregator . Builder ( ) . select ( property1 , property2 ) . execute ( func1 ) . build ( ) ; final uk . gov . gchq . gaffer . data . element . Properties props1 = new uk . gov . gchq . gaffer . data . element . Properties ( ) ; props1 . put ( property1 , 1 ) ; props1 . put ( property2 , "value1" ) ; final uk . gov . gchq . gaffer . data . element . Properties props2 = new uk . gov . gchq . gaffer . data . element . Properties ( ) ; props2 . put ( property1 , 10 ) ; props2 . put ( property2 , "value10" ) ; final uk . gov . gchq . gaffer . data . element . Properties props3 = new uk . gov . gchq . gaffer . data . element . Properties ( ) ; props3 . put ( property1 , 5 ) ; props3 . put ( property2 , "value5" ) ; uk . gov . gchq . gaffer . data . element . Properties state = props1 ; state = aggregator . apply ( state , props2 ) ; state = aggregator . apply ( state , props3 ) ; "<AssertPlaceHolder>" ; } apply ( uk . gov . gchq . gaffer . data . element . Properties , uk . gov . gchq . gaffer . data . element . Properties ) { if ( null == state ) { return properties ; } propertiesTuple . setProperties ( properties ) ; stateTuple . setProperties ( state ) ; apply ( stateTuple , propertiesTuple ) ; return state ; }
|
org . junit . Assert . assertEquals ( props2 , state )
|
initialCrawlThrowsDee ( ) { com . amihaiemil . charles . WebCrawl initial = org . mockito . Mockito . mock ( com . amihaiemil . charles . WebCrawl . class ) ; com . amihaiemil . charles . WebCrawl failsafe = org . mockito . Mockito . mock ( com . amihaiemil . charles . WebCrawl . class ) ; org . mockito . Mockito . doThrow ( new com . amihaiemil . charles . DataExportException ( "Dee<sp>on<sp>initial<sp>crawl!" ) ) . when ( initial ) . crawl ( ) ; com . amihaiemil . charles . SwitchableCrawl sc = new com . amihaiemil . charles . SwitchableCrawl ( initial , failsafe ) ; try { sc . crawl ( ) ; } catch ( com . amihaiemil . charles . DataExportException ex ) { "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( initial , org . mockito . Mockito . times ( 1 ) ) . crawl ( ) ; org . mockito . Mockito . verify ( failsafe , org . mockito . Mockito . times ( 0 ) ) . crawl ( ) ; } } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj . getClass ( ) ) ) { return false ; } com . amihaiemil . charles . Link other = ( ( com . amihaiemil . charles . Link ) ( obj ) ) ; if ( ( this . href ) == null ) { if ( ( other . href ) != null ) return false ; } else { if ( ( this . href . contains ( "#" ) ) && ( other . href . contains ( "#" ) ) ) { return new com . amihaiemil . charles . Link ( "" , this . href . substring ( 0 , href . indexOf ( "#" ) ) ) . equals ( new com . amihaiemil . charles . Link ( "" , other . href . substring ( 0 , other . href . indexOf ( "#" ) ) ) ) ; } else if ( this . href . contains ( "#" ) ) { return new com . amihaiemil . charles . Link ( "" , this . href . substring ( 0 , href . indexOf ( "#" ) ) ) . equals ( new com . amihaiemil . charles . Link ( "" , other . href ) ) ; } else if ( other . href . contains ( "#" ) ) { return new com . amihaiemil . charles . Link ( "" , this . href ) . equals ( new com . amihaiemil . charles . Link ( "" , other . href . substring ( 0 , other . href . indexOf ( "#" ) ) ) ) ; } if ( ( this . href . endsWith ( "/" ) ) && ( other . href . endsWith ( "/" ) ) ) { return this . href . substring ( 0 , ( ( this . href . length ( ) ) - 1 ) ) . equals ( other . href . substring ( 0 , ( ( other . href . length ( ) ) - 1 ) ) ) ; } else if ( this . href . endsWith ( "/" ) ) { return this . href . substring ( 0 , ( ( href . length ( ) ) - 1 ) ) . equals ( other . href ) ; } else if ( other . href . endsWith ( "/" ) ) { return this . href . equals ( other . href . substring ( 0 , ( ( other . href . length ( ) ) - 1 ) ) ) ; } } return this . href . equals ( other . href ) ; }
|
org . junit . Assert . assertTrue ( ex . getMessage ( ) . equals ( "Dee<sp>on<sp>initial<sp>crawl!" ) )
|
testExtractCreatedOrUpdated ( ) { java . util . Map < org . opendaylight . yangtools . yang . binding . InstanceIdentifier < org . opendaylight . yangtools . yang . binding . DataObject > , org . opendaylight . yangtools . yang . binding . DataObject > result = new java . util . HashMap ( ) ; org . powermock . api . mockito . PowerMockito . doReturn ( result ) . when ( org . opendaylight . ovsdb . southbound . ovsdb . transact . TransactUtils . class ) ; org . opendaylight . ovsdb . southbound . ovsdb . transact . TransactUtils . extractUpdated ( any ( org . opendaylight . ovsdb . southbound . ovsdb . transact . DataChangeEvent . class ) , eq ( org . opendaylight . yangtools . yang . binding . DataObject . class ) ) ; java . util . Map < org . opendaylight . yangtools . yang . binding . InstanceIdentifier < org . opendaylight . yangtools . yang . binding . DataObject > , org . opendaylight . yangtools . yang . binding . DataObject > map = new java . util . HashMap ( ) ; org . opendaylight . yangtools . yang . binding . InstanceIdentifier < org . opendaylight . yangtools . yang . binding . DataObject > iid = mock ( org . opendaylight . yangtools . yang . binding . InstanceIdentifier . class ) ; org . opendaylight . yangtools . yang . binding . DataObject db = mock ( org . opendaylight . yangtools . yang . binding . DataObject . class ) ; map . put ( iid , db ) ; org . powermock . api . mockito . PowerMockito . doReturn ( map ) . when ( org . opendaylight . ovsdb . southbound . ovsdb . transact . TransactUtils . class ) ; org . opendaylight . ovsdb . southbound . ovsdb . transact . TransactUtils . extractCreated ( any ( org . opendaylight . ovsdb . southbound . ovsdb . transact . DataChangeEvent . class ) , eq ( org . opendaylight . yangtools . yang . binding . DataObject . class ) ) ; java . util . Map < org . opendaylight . yangtools . yang . binding . InstanceIdentifier < org . opendaylight . yangtools . yang . binding . DataObject > , org . opendaylight . yangtools . yang . binding . DataObject > testResult = new java . util . HashMap ( ) ; testResult . put ( iid , db ) ; java . lang . Class < org . opendaylight . yangtools . yang . binding . DataObject > klazz = org . opendaylight . yangtools . yang . binding . DataObject . class ; org . opendaylight . ovsdb . southbound . ovsdb . transact . DataChangeEvent changes = mock ( org . opendaylight . ovsdb . southbound . ovsdb . transact . DataChangeEvent . class ) ; "<AssertPlaceHolder>" ; } extractCreatedOrUpdated ( org . opendaylight . ovsdb . southbound . ovsdb . transact . DataChangeEvent , java . lang . Class ) { java . util . Map < org . opendaylight . yangtools . yang . binding . InstanceIdentifier < T > , T > result = org . opendaylight . ovsdb . southbound . ovsdb . transact . TransactUtils . extractUpdated ( changes , klazz ) ; result . putAll ( org . opendaylight . ovsdb . southbound . ovsdb . transact . TransactUtils . extractCreated ( changes , klazz ) ) ; return result ; }
|
org . junit . Assert . assertEquals ( testResult , org . opendaylight . ovsdb . southbound . ovsdb . transact . TransactUtils . extractCreatedOrUpdated ( changes , klazz ) )
|
testCreateSheetInWorkspace ( ) { server . setResponseBody ( new java . io . File ( "src/test/resources/createSheet.json" ) ) ; com . smartsheet . api . internal . ArrayList < com . smartsheet . api . internal . Column > list = new com . smartsheet . api . internal . ArrayList < com . smartsheet . api . internal . Column > ( ) ; com . smartsheet . api . internal . Column col = new com . smartsheet . api . internal . Column . AddColumnToSheetBuilder ( ) . setTitle ( "column1" ) . setType ( ColumnType . TEXT_NUMBER ) . setPrimary ( true ) . build ( ) ; list . add ( col ) ; col = new com . smartsheet . api . internal . Column . AddColumnToSheetBuilder ( ) . setTitle ( "column2" ) . setType ( ColumnType . TEXT_NUMBER ) . setPrimary ( false ) . build ( ) ; col . setId ( 4049365800118148L ) ; list . add ( col ) ; com . smartsheet . api . internal . Sheet sheet = new com . smartsheet . api . internal . Sheet . CreateSheetBuilder ( ) . setName ( "NEW<sp>TEST<sp>SHEET" ) . setColumns ( list ) . build ( ) ; com . smartsheet . api . internal . Sheet newSheet = sheetResource . createSheetInWorkspace ( 1234L , sheet ) ; "<AssertPlaceHolder>" ; } getColumns ( ) { return columns ; }
|
org . junit . Assert . assertEquals ( 2 , newSheet . getColumns ( ) . size ( ) )
|
emptyPageBecomesNullPage ( ) { net . fortytwo . smsn . server . actions . SetProperties action = new net . fortytwo . smsn . server . actions . SetProperties ( ) ; action . setId ( atom . getId ( ) ) ; action . setName ( SemanticSynchrony . PropertyKeys . TEXT ) ; action . setValue ( "<sp>\n<sp>" ) ; perform ( action ) ; atom = topicGraph . getAtomById ( atom . getId ( ) ) . get ( ) ; "<AssertPlaceHolder>" ; } getText ( ) { return text ; }
|
org . junit . Assert . assertNull ( atom . getText ( ) )
|
testNameInvalid ( ) { tested . getDiagramSet ( ) . setName ( new org . kie . workbench . common . stunner . bpmn . definition . property . general . Name ( org . kie . workbench . common . stunner . cm . definition . CaseManagementDiagramTest . NAME_INVALID ) ) ; java . util . Set < javax . validation . ConstraintViolation < org . kie . workbench . common . stunner . cm . definition . CaseManagementDiagram > > violations = this . validator . validate ( tested ) ; "<AssertPlaceHolder>" ; } size ( ) { return index . size ( ) ; }
|
org . junit . Assert . assertEquals ( 1 , violations . size ( ) )
|
test130b ( ) { java . lang . String myName = "Test.Name" ; java . lang . Object myValue = new java . lang . Object ( ) { @ org . apache . commons . jexl3 . Override public java . lang . String toString ( ) { return "Test.Value" ; } } ; org . apache . commons . jexl3 . JexlEngine myJexlEngine = new org . apache . commons . jexl3 . internal . Engine ( ) ; org . apache . commons . jexl3 . MapContext myMapContext = new org . apache . commons . jexl3 . MapContext ( ) ; myMapContext . set ( myName , myValue ) ; java . lang . Object myObjectWithTernaryConditional = myJexlEngine . createScript ( ( myName + "?:null" ) ) . execute ( myMapContext ) ; "<AssertPlaceHolder>" ; } execute ( java . lang . Object [ ] ) { java . lang . Class < ? > [ ] clazz = new java . lang . Class < ? > [ args . length ] ; for ( int a = 0 ; a < ( args . length ) ; ++ a ) { clazz [ a ] = ( ( args [ a ] ) != null ) ? args [ a ] . getClass ( ) : org . apache . commons . jexl3 . Void . class ; } return clazz ; }
|
org . junit . Assert . assertEquals ( myValue , myObjectWithTernaryConditional )
|
deveObterIdentificadorComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . NFProtocoloInfo protocoloInfo = new com . fincatto . documentofiscal . nfe310 . classes . NFProtocoloInfo ( ) ; final java . lang . String identificador = "ID798456123" ; protocoloInfo . setIdentificador ( identificador ) ; "<AssertPlaceHolder>" ; } getIdentificador ( ) { return this . identificador ; }
|
org . junit . Assert . assertEquals ( identificador , protocoloInfo . getIdentificador ( ) )
|
getUser ( ) { com . xkcoding . orm . beetlsql . entity . User user = userService . getUser ( 1L ) ; "<AssertPlaceHolder>" ; log . debug ( "user=<sp>{}" , user ) ; } getUser ( java . lang . Long ) { return userDao . single ( id ) ; }
|
org . junit . Assert . assertNotNull ( user )
|
flatMapAlreadyDoneExecutionExceptionTest ( ) { java . lang . Exception failure = new java . lang . Exception ( ) ; org . threadly . concurrent . future . ListenableFuture < ? > lf = makeListenableFutureFactory ( ) . makeWithFailure ( failure ) ; java . util . concurrent . atomic . AtomicBoolean mapperRan = new java . util . concurrent . atomic . AtomicBoolean ( false ) ; org . threadly . concurrent . future . ListenableFuture < java . lang . Void > mappedLF = lf . flatMap ( ( o ) -> { mapperRan . set ( true ) ; return org . threadly . concurrent . future . FutureUtils . immediateResultFuture ( null ) ; } ) ; "<AssertPlaceHolder>" ; org . threadly . concurrent . future . ListenableFutureInterfaceTest . verifyFutureFailure ( mappedLF , failure ) ; } isDone ( ) { return futureImp . isDone ( ) ; }
|
org . junit . Assert . assertTrue ( mappedLF . isDone ( ) )
|
testTransform ( ) { this . writer = org . opendaylight . protocol . bgp . rib . impl . AdjRibInWriter . create ( org . opendaylight . yangtools . yang . data . api . YangInstanceIdentifier . of ( Rib . QNAME ) , PeerRole . Ebgp , this . ptc ) ; "<AssertPlaceHolder>" ; final org . opendaylight . yangtools . yang . data . api . YangInstanceIdentifier peerPath = org . opendaylight . yangtools . yang . data . api . YangInstanceIdentifier . builder ( ) . node ( org . opendaylight . protocol . bgp . rib . impl . RIB_NID ) . node ( Peer . QNAME ) . nodeWithKey ( Peer . QNAME , RIBQNames . PEER_ID_QNAME , this . peerIp ) . build ( ) ; this . writer . transform ( new org . opendaylight . yang . gen . v1 . urn . opendaylight . params . xml . ns . yang . bgp . rib . rev180329 . PeerId ( this . peerIp ) , peerPath , this . registry , this . tableTypes , org . opendaylight . protocol . bgp . rib . impl . AdjRibsInWriterTest . ADD_PATH_TABLE_MAPS ) ; verifyPeerSkeletonInsertedCorrectly ( peerPath ) ; verify ( this . tx ) . put ( eq ( LogicalDatastoreType . OPERATIONAL ) , eq ( peerPath . node ( SupportedTables . QNAME ) . node ( org . opendaylight . protocol . bgp . rib . spi . RibSupportUtils . toYangKey ( SupportedTables . QNAME , org . opendaylight . protocol . bgp . rib . impl . AdjRibsInWriterTest . K4 ) ) ) , any ( org . opendaylight . yangtools . yang . data . api . schema . NormalizedNode . class ) ) ; verifyUptodateSetToFalse ( peerPath ) ; } create ( org . opendaylight . yangtools . yang . data . api . YangInstanceIdentifier , org . opendaylight . yang . gen . v1 . urn . opendaylight . params . xml . ns . yang . bgp . rib . rev180329 . PeerRole , org . opendaylight . protocol . bgp . rib . impl . spi . PeerTransactionChain ) { return new org . opendaylight . protocol . bgp . rib . impl . AdjRibInWriter ( ribId , chain , role , java . util . Collections . emptyMap ( ) ) ; }
|
org . junit . Assert . assertNotNull ( this . writer )
|
TopWikipediaSessionsTest ( ) { com . datatorrent . api . LocalMode lma = com . datatorrent . api . LocalMode . newInstance ( ) ; org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( false ) ; conf . set ( "dt.application.TopWikipediaSessions.operator.console.silent" , "true" ) ; lma . prepareDAG ( new org . apache . apex . malhar . stream . sample . complete . TopWikipediaSessions ( ) , conf ) ; com . datatorrent . api . LocalMode . Controller lc = lma . getController ( ) ; ( ( com . datatorrent . stram . StramLocalCluster ) ( lc ) ) . setExitCondition ( new java . util . concurrent . Callable < java . lang . Boolean > ( ) { @ org . apache . apex . malhar . stream . sample . complete . Override public org . apache . apex . malhar . stream . sample . complete . Boolean call ( ) throws org . apache . apex . malhar . stream . sample . complete . Exception { return ( TopWikipediaSessions . SessionGen . getTupleCount ( ) ) >= 250 ; } } ) ; lc . run ( 30000 ) ; for ( int i = 0 ; i < ( TopWikipediaSessions . Collector . getResult ( ) . size ( ) ) ; i ++ ) { "<AssertPlaceHolder>" ; } } isInOrder ( java . util . List ) { if ( ( ( input . size ( ) ) == 0 ) || ( ( input . size ( ) ) == 1 ) ) { return true ; } for ( int i = 0 ; i < ( ( input . size ( ) ) - 2 ) ; i ++ ) { if ( ( input . get ( i ) . getValue ( ) . getValue ( ) ) < ( input . get ( ( i + 1 ) ) . getValue ( ) . getValue ( ) ) ) { return false ; } } return true ; }
|
org . junit . Assert . assertTrue ( isInOrder ( TopWikipediaSessions . Collector . getResult ( ) . get ( i ) ) )
|
getMillisAtShardKeyWeeklyTest ( ) { java . lang . Long millistamp = java . lang . System . currentTimeMillis ( ) ; java . util . UUID startingUUID = com . datastax . driver . core . utils . UUIDs . startOf ( millistamp ) ; com . pardot . rhombus . TimebasedShardingStrategy shardingStrategy = new com . pardot . rhombus . ShardingStrategyWeekly ( ) ; com . pardot . rhombus . util . faker . FakeIdRange subject = new com . pardot . rhombus . util . faker . FakeIdRange ( CField . CDataType . TIMEUUID , startingUUID , 950L , 3L , shardingStrategy , "testing" ) ; long counter = 8L ; java . util . UUID id = ( ( java . util . UUID ) ( subject . getIdAtCounter ( counter , shardingStrategy ) ) ) ; long actual = subject . getCounterAtId ( id ) ; "<AssertPlaceHolder>" ; } getCounterAtId ( java . lang . Object ) { if ( idType . equals ( CField . CDataType . TIMEUUID ) ) { com . pardot . rhombus . util . faker . UUID idUUID = ( ( com . pardot . rhombus . util . faker . UUID ) ( id ) ) ; java . lang . Long idMillis = com . pardot . rhombus . util . UuidUtil . convertUUIDToJavaMillis ( idUUID ) ; java . lang . Long indexOfShard = shardingStrategy . getShardKey ( idMillis . longValue ( ) ) ; java . lang . Long shardMillis = getMillisAtShardKey ( indexOfShard , shardingStrategy ) ; java . lang . Long itemInShard = ( idMillis - shardMillis ) / ( spacing ) ; return ( ( indexOfShard - ( startingShardNumber ) ) * ( objectsPerShard ) ) + itemInShard ; } if ( idType . equals ( CField . CDataType . VARCHAR ) ) { return java . lang . Long . valueOf ( id . toString ( ) ) ; } if ( idType . equals ( CField . CDataType . BIGINT ) ) { return ( ( java . lang . Long ) ( id ) ) ; } throw new com . pardot . rhombus . RhombusException ( "Index<sp>Id<sp>type<sp>not<sp>compatible<sp>with<sp>faking<sp>it" ) ; }
|
org . junit . Assert . assertEquals ( counter , actual )
|
testDeclaredSlidingWindow ( ) { org . drools . model . WindowReference var_DeclaredWindow = org . drools . model . FlowDSL . window ( org . drools . model . WindowDefinition . Type . TIME , 5 , java . util . concurrent . TimeUnit . SECONDS , org . drools . modelcompiler . domain . StockTick . class , ( _this ) -> _this . getCompany ( ) . equals ( "DROO" ) ) ; final org . drools . model . Variable < org . drools . modelcompiler . domain . StockTick > var_$a = org . drools . model . FlowDSL . declarationOf ( org . drools . modelcompiler . domain . StockTick . class , "$a" , var_DeclaredWindow ) ; org . drools . model . Rule rule = org . drools . model . FlowDSL . rule ( "R" ) . build ( org . drools . model . FlowDSL . on ( var_$a ) . execute ( ( $a ) -> { System . out . println ( $a . getCompany ( ) ) ; } ) ) ; org . drools . model . Model model = new org . drools . model . impl . ModelImpl ( ) . addRule ( rule ) ; org . kie . api . KieBase kieBase = org . drools . modelcompiler . builder . KieBaseBuilder . createKieBaseFromModel ( model , EventProcessingOption . STREAM ) ; org . kie . api . runtime . KieSessionConfiguration sessionConfig = org . drools . core . impl . KnowledgeBaseFactory . newKnowledgeSessionConfiguration ( ) ; sessionConfig . setOption ( org . kie . api . runtime . conf . ClockTypeOption . get ( ClockType . PSEUDO_CLOCK . getId ( ) ) ) ; org . kie . api . runtime . KieSession ksession = kieBase . newKieSession ( sessionConfig , null ) ; org . kie . api . time . SessionPseudoClock clock = ksession . getSessionClock ( ) ; clock . advanceTime ( 2 , TimeUnit . SECONDS ) ; ksession . insert ( new org . drools . modelcompiler . domain . StockTick ( "DROO" ) ) ; clock . advanceTime ( 2 , TimeUnit . SECONDS ) ; ksession . insert ( new org . drools . modelcompiler . domain . StockTick ( "DROO" ) ) ; clock . advanceTime ( 2 , TimeUnit . SECONDS ) ; ksession . insert ( new org . drools . modelcompiler . domain . StockTick ( "ACME" ) ) ; clock . advanceTime ( 2 , TimeUnit . SECONDS ) ; ksession . insert ( new org . drools . modelcompiler . domain . StockTick ( "DROO" ) ) ; "<AssertPlaceHolder>" ; } fireAllRules ( ) { return 0 ; }
|
org . junit . Assert . assertEquals ( 2 , ksession . fireAllRules ( ) )
|
testJsonArrayGetBoolean ( ) { io . vertx . codetrans . JsonTest . array = new io . vertx . core . json . JsonArray ( ) . add ( true ) ; runAll ( "json/JsArray" , "getBoolean" , ( ) -> { "<AssertPlaceHolder>" ; } ) ; } runAll ( java . lang . String , java . lang . String , io . vertx . codetrans . Map , java . lang . Runnable ) { runAll ( path , method , globals , io . vertx . codetrans . Collections . emptyList ( ) , after ) ; }
|
org . junit . Assert . assertEquals ( true , io . vertx . codetrans . JsonTest . o )
|
runTest ( ) { boolean result = checkNoError ( "Social_Files_Upload_Public_File" ) ; "<AssertPlaceHolder>" ; } getNoErrorMsg ( ) { return noErrorMsg ; }
|
org . junit . Assert . assertTrue ( getNoErrorMsg ( ) , result )
|
subscribeToService_setCutOffDayReseller ( ) { int cutOffDay = 8 ; setCutOffDayForOrganization ( reseller . getKey ( ) , cutOffDay ) ; container . login ( java . lang . String . valueOf ( resellerAdmin . getKey ( ) ) , org . oscm . subscriptionservice . bean . ROLE_ORGANIZATION_ADMIN ) ; org . oscm . internal . vo . VOSubscription voSubscription = subMgmt . subscribeToService ( org . oscm . test . data . Subscriptions . createVOSubscription ( "subscriptionResellerId" ) , getProductAndAssemble ( productResellerCopy . getKey ( ) ) , createVOUsageLicenses ( resellerAdmin ) , null , null , new java . util . ArrayList < org . oscm . internal . vo . VOUda > ( ) ) ; "<AssertPlaceHolder>" ; } getCutOffDayFromSubscription ( long ) { java . lang . Integer result = runTX ( new java . util . concurrent . Callable < java . lang . Integer > ( ) { @ org . oscm . subscriptionservice . bean . Override public org . oscm . subscriptionservice . bean . Integer call ( ) throws org . oscm . subscriptionservice . bean . Exception { org . oscm . domobjects . Subscription subscription = mgr . find ( org . oscm . domobjects . Subscription . class , subscriptionKey ) ; return java . lang . Integer . valueOf ( subscription . getCutOffDay ( ) ) ; } } ) ; return result . intValue ( ) ; }
|
org . junit . Assert . assertEquals ( cutOffDay , getCutOffDayFromSubscription ( voSubscription . getKey ( ) ) )
|
convertToQueryBuilderWrongParamValue ( ) { org . apache . sling . testing . mock . sling . servlet . MockSlingHttpServletRequest request = context . request ( ) ; request . setParameterMap ( com . google . common . collect . ImmutableMap . < java . lang . String , java . lang . Object > builder ( ) . put ( "_ctqb" , "blah" ) . build ( ) ) ; "<AssertPlaceHolder>" ; } convertToQueryBuilder ( org . apache . sling . api . SlingHttpServletRequest ) { return ( com . adobe . acs . commons . contentfinder . querybuilder . impl . viewhandler . GQLToQueryBuilderConverter . has ( request , ContentFinderConstants . CONVERT_TO_QUERYBUILDER_KEY ) ) && ( ContentFinderConstants . CONVERT_TO_QUERYBUILDER_VALUE . equals ( com . adobe . acs . commons . contentfinder . querybuilder . impl . viewhandler . GQLToQueryBuilderConverter . get ( request , ContentFinderConstants . CONVERT_TO_QUERYBUILDER_KEY ) ) ) ; }
|
org . junit . Assert . assertFalse ( com . adobe . acs . commons . contentfinder . querybuilder . impl . viewhandler . GQLToQueryBuilderConverter . convertToQueryBuilder ( request ) )
|
checkSetRenderingHint ( ) { this . g2 . setRenderingHint ( RenderingHints . KEY_STROKE_CONTROL , RenderingHints . VALUE_STROKE_PURE ) ; "<AssertPlaceHolder>" ; } getRenderingHint ( java . awt . RenderingHints$Key ) { return this . hints . get ( hintKey ) ; }
|
org . junit . Assert . assertEquals ( RenderingHints . VALUE_STROKE_PURE , this . g2 . getRenderingHint ( RenderingHints . KEY_STROKE_CONTROL ) )
|
onConnectionLostMapsInvalidProtocolVersionException ( ) { new tests . unit . com . microsoft . azure . sdk . iot . device . transport . mqtt . exceptions . NonStrictExpectations ( ) { { mockedMqttException . getReasonCode ( ) ; result = org . eclipse . paho . client . mqttv3 . MqttException . REASON_CODE_INVALID_PROTOCOL_VERSION ; } } ; java . lang . Exception e = tests . unit . com . microsoft . azure . sdk . iot . device . transport . mqtt . exceptions . PahoExceptionTranslator . convertToMqttException ( new org . eclipse . paho . client . mqttv3 . MqttException ( org . eclipse . paho . client . mqttv3 . MqttException . REASON_CODE_INVALID_PROTOCOL_VERSION ) , "" ) ; "<AssertPlaceHolder>" ; } convertToMqttException ( org . eclipse . paho . client . mqttv3 . MqttException , java . lang . String ) { switch ( pahoException . getReasonCode ( ) ) { case REASON_CODE_CLIENT_EXCEPTION : if ( ( ( ( ( ( pahoException . getCause ( ) ) instanceof java . net . UnknownHostException ) || ( ( pahoException . getCause ( ) ) instanceof java . net . NoRouteToHostException ) ) || ( ( pahoException . getCause ( ) ) instanceof java . lang . InterruptedException ) ) || ( ( pahoException . getCause ( ) ) instanceof java . net . SocketTimeoutException ) ) || ( ( pahoException . getCause ( ) ) instanceof java . net . SocketException ) ) { com . microsoft . azure . sdk . iot . device . exceptions . ProtocolException connectionException = new com . microsoft . azure . sdk . iot . device . exceptions . ProtocolException ( errorMessage , pahoException ) ; connectionException . setRetryable ( true ) ; return connectionException ; } else { return new com . microsoft . azure . sdk . iot . device . exceptions . ProtocolException ( errorMessage , pahoException ) ; } case REASON_CODE_INVALID_PROTOCOL_VERSION : return new com . microsoft . azure . sdk . iot . device . transport . mqtt . exceptions . MqttRejectedProtocolVersionException ( errorMessage , pahoException ) ; case REASON_CODE_INVALID_CLIENT_ID : return new com . microsoft . azure . sdk . iot . device . transport . mqtt . exceptions . MqttIdentifierRejectedException ( errorMessage , pahoException ) ; case REASON_CODE_BROKER_UNAVAILABLE : return new com . microsoft . azure . sdk . iot . device . transport . mqtt . exceptions . MqttServerUnavailableException ( errorMessage , pahoException ) ; case REASON_CODE_FAILED_AUTHENTICATION : return new com . microsoft . azure . sdk . iot . device . transport . mqtt . exceptions . MqttBadUsernameOrPasswordException ( errorMessage , pahoException ) ; case REASON_CODE_NOT_AUTHORIZED : return new com . microsoft . azure . sdk . iot . device . transport . mqtt . exceptions . MqttUnauthorizedException ( errorMessage , pahoException ) ; case REASON_CODE_SUBSCRIBE_FAILED : case REASON_CODE_CLIENT_NOT_CONNECTED : case REASON_CODE_TOKEN_INUSE : case REASON_CODE_CONNECTION_LOST : case REASON_CODE_SERVER_CONNECT_ERROR : case REASON_CODE_CLIENT_TIMEOUT : case REASON_CODE_WRITE_TIMEOUT : case REASON_CODE_MAX_INFLIGHT : case REASON_CODE_CONNECT_IN_PROGRESS : com . microsoft . azure . sdk . iot . device . exceptions . ProtocolException connectionException = new com . microsoft . azure . sdk . iot . device . exceptions . ProtocolException ( errorMessage , pahoException ) ; connectionException . setRetryable ( true ) ; return connectionException ; default : if ( ( ( pahoException . getReasonCode ( ) ) >= ( com . microsoft . azure . sdk . iot . device . transport . mqtt . exceptions . PahoExceptionTranslator . UNDEFINED_MQTT_CONNECT_CODE_LOWER_BOUND ) ) && ( ( pahoException . getReasonCode ( ) ) <= ( com . microsoft . azure . sdk . iot . device . transport . mqtt . exceptions . PahoExceptionTranslator . UNDEFINED_MQTT_CONNECT_CODE_UPPER_BOUND ) ) ) { return new com . microsoft . azure . sdk . iot . device . transport . mqtt . exceptions . MqttUnexpectedErrorException ( errorMessage , pahoException ) ; } else { return new com . microsoft . azure . sdk . iot . device . exceptions . ProtocolException ( errorMessage , pahoException ) ; } } }
|
org . junit . Assert . assertTrue ( ( e instanceof tests . unit . com . microsoft . azure . sdk . iot . device . transport . mqtt . exceptions . MqttRejectedProtocolVersionException ) )
|
testFlatSerde_1 ( ) { lombok . val arrayX = org . nd4j . linalg . factory . Nd4j . create ( new int [ ] { 1 , 2 , 3 , 4 } , new long [ ] { 4 } , DataType . INT ) ; lombok . val builder = new com . google . flatbuffers . FlatBufferBuilder ( 512 ) ; lombok . val flat = arrayX . toFlatArray ( builder ) ; builder . finish ( flat ) ; lombok . val db = builder . dataBuffer ( ) ; lombok . val flatb = org . nd4j . graph . FlatArray . getRootAsFlatArray ( db ) ; lombok . val restored = org . nd4j . linalg . factory . Nd4j . createFromFlatArray ( flatb ) ; "<AssertPlaceHolder>" ; } createFromFlatArray ( org . nd4j . graph . FlatArray ) { lombok . val dtype = array . dtype ( ) ; lombok . val order = array . byteOrder ( ) ; lombok . val rank = ( ( int ) ( array . shape ( 0 ) ) ) ; lombok . val shapeInfo = new long [ org . nd4j . linalg . api . shape . Shape . shapeInfoLength ( rank ) ] ; for ( int e = 0 ; e < ( shapeInfo . length ) ; e ++ ) shapeInfo [ e ] = array . shape ( e ) ; if ( org . nd4j . linalg . api . shape . Shape . isEmpty ( shapeInfo ) ) return org . nd4j . linalg . factory . Nd4j . empty ( ) ; char ordering = ( ( shapeInfo [ ( ( shapeInfo . length ) - 1 ) ] ) == 99 ) ? 'c' : 'f' ; lombok . val shapeOf = org . nd4j . linalg . api . shape . Shape . shapeOf ( shapeInfo ) ; lombok . val stridesOf = org . nd4j . linalg . api . shape . Shape . stridesOf ( shapeInfo ) ; lombok . val _dtype = org . nd4j . autodiff . samediff . serde . FlatBuffersMapper . getDataTypeFromByte ( dtype ) ; lombok . val _order = org . nd4j . autodiff . samediff . serde . FlatBuffersMapper . getOrderFromByte ( order ) ; lombok . val prod = ( rank > 0 ) ? org . nd4j . linalg . util . ArrayUtil . prod ( shapeOf ) : 1 ; lombok . val bb = array . bufferAsByteBuffer ( ) ; switch ( _dtype ) { case DOUBLE : { lombok . val doubles = new double [ prod ] ; lombok . val db = bb . order ( _order ) . asDoubleBuffer ( ) ; for ( int e = 0 ; e < prod ; e ++ ) doubles [ e ] = db . get ( e ) ; return org . nd4j . linalg . factory . Nd4j . create ( doubles , shapeOf , stridesOf , ordering , DataType . DOUBLE ) ; } case FLOAT : { lombok . val doubles = new float [ prod ] ; lombok . val fb = bb . order ( _order ) . asFloatBuffer ( ) ; for ( int e = 0 ; e < prod ; e ++ ) doubles [ e ] = fb . get ( e ) ; return org . nd4j . linalg . factory . Nd4j . create ( doubles , shapeOf , stridesOf , ordering , DataType . FLOAT ) ; } case HALF : { lombok . val doubles = new float [ prod ] ; lombok . val sb = bb . order ( _order ) . asShortBuffer ( ) ; for ( int e = 0 ; e < prod ; e ++ ) doubles [ e ] = org . nd4j . linalg . factory . HalfIndexer . toFloat ( ( ( int ) ( sb . get ( e ) ) ) ) ; return org . nd4j . linalg . factory . Nd4j . create ( doubles , shapeOf , stridesOf , ordering , DataType . HALF ) ; } case INT : { lombok . val doubles = new int [ prod ] ; lombok . val sb = bb . order ( _order ) . asIntBuffer ( ) ; for ( int e = 0 ; e < prod ; e ++ ) doubles [ e ] = sb . get ( e ) ; return org . nd4j . linalg . factory . Nd4j . create ( doubles , shapeOf , stridesOf , ordering , DataType . INT ) ; } case LONG : { lombok . val doubles = new long [ prod ] ; lombok . val sb = bb . order ( _order ) . asLongBuffer ( ) ; for ( int e = 0 ; e < prod ; e ++ ) doubles [ e ] = sb . get ( e ) ; return org . nd4j . linalg . factory . Nd4j . create ( doubles , shapeOf , stridesOf , ordering , DataType . LONG ) ; } case SHORT : { lombok . val doubles = new short [ prod ] ; lombok . val sb = bb . order ( _order ) . asShortBuffer ( ) ; for ( int e = 0 ; e < prod ; e ++ ) doubles [ e ] = sb . get ( e ) ; return org . nd4j . linalg . factory . Nd4j . create ( doubles , shapeOf , stridesOf , ordering , DataType . SHORT ) ; } case BYTE : { lombok . val doubles = new byte [ prod ] ; lombok . val sb = bb . order ( _order ) . asReadOnlyBuffer ( ) ; for ( int e = 0 ; e <
|
org . junit . Assert . assertEquals ( arrayX , restored )
|
startsWith_A$Seq_containsNull2 ( ) { com . m3 . scalaflavor4j . Seq < java . lang . Integer > seq = com . m3 . scalaflavor4j . Seq . apply ( 1 , null , 2 , 3 ) ; com . m3 . scalaflavor4j . Seq < java . lang . Integer > that = com . m3 . scalaflavor4j . Seq . apply ( 1 , null , 2 ) ; boolean actual = seq . startsWith ( that ) ; boolean expected = true ; "<AssertPlaceHolder>" ; } startsWith ( com . m3 . scalaflavor4j . Seq ) { return false ; }
|
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( expected ) ) )
|
testEvaluateQuery ( ) { com . huawei . streaming . datasource . DataSourceContainer datasource = createDataSource ( ) ; java . util . Map < java . lang . String , java . lang . Object > cqlresults = prepareCQLArgResults ( datasource ) ; try { datasource . initialize ( ) ; datasource . evaluate ( cqlresults ) ; org . junit . Assert . fail ( "failed<sp>to<sp>evaluate<sp>datasource" ) ; } catch ( com . huawei . streaming . exception . StreamingRuntimeException e ) { "<AssertPlaceHolder>" ; } finally { datasource . destroy ( ) ; } } fail ( java . lang . String ) { java . lang . Class < ? > junitAssertionFailedError = null ; try { java . lang . ClassLoader cl = java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) ; junitAssertionFailedError = java . lang . Class . forName ( com . huawei . streaming . support . SupportHelper . JUNIT_ASSERTIONFAILED_ERROR , true , cl ) ; } catch ( java . lang . ClassNotFoundException ex ) { throw new java . lang . AssertionError ( ) ; } if ( junitAssertionFailedError == null ) { throw new java . lang . AssertionError ( ( "Failed<sp>assertion<sp>and<sp>no<sp>JUnit<sp>found<sp>in<sp>classpath:<sp>" + message ) ) ; } java . lang . reflect . Constructor < ? > ctor ; try { ctor = junitAssertionFailedError . getConstructor ( new java . lang . Class [ ] { java . lang . String . class } ) ; } catch ( java . lang . NoSuchMethodException e ) { throw new java . lang . AssertionError ( ( "Failed<sp>to<sp>find<sp>JUnit<sp>method<sp>'fail'<sp>method:<sp>" + ( e . getMessage ( ) ) ) ) ; } try { throw ( ( java . lang . AssertionError ) ( ctor . newInstance ( new java . lang . Object [ ] { message } ) ) ) ; } catch ( java . lang . Exception e ) { throw new java . lang . AssertionError ( ( ( ( "Failed<sp>to<sp>call<sp>ctor<sp>of<sp>'" + ( com . huawei . streaming . support . SupportHelper . JUNIT_ASSERTIONFAILED_ERROR ) ) + "':<sp>" ) + ( e . getMessage ( ) ) ) ) ; } }
|
org . junit . Assert . assertTrue ( true )
|
testPluralizeWhenEmpty ( ) { "<AssertPlaceHolder>" ; } pluralize ( java . lang . String ) { return com . openshift . restclient . ResourceKind . pluralize ( kind , false , false ) ; }
|
org . junit . Assert . assertEquals ( "" , com . openshift . restclient . ResourceKind . pluralize ( "<sp>" ) )
|
getNoTablesFilteredByEmptySetOfTypes ( ) { final java . sql . ResultSet rs = this . metaData . getTables ( null , null , null , new java . lang . String [ 0 ] ) ; int tableCount = rsSizeOf ( rs ) ; "<AssertPlaceHolder>" ; } rsSizeOf ( java . sql . ResultSet ) { int tableCount = 0 ; while ( rs . next ( ) ) { tableCount ++ ; } return tableCount ; }
|
org . junit . Assert . assertThat ( tableCount , org . hamcrest . Matchers . is ( 0 ) )
|
testNextIntExtremeValues ( ) { int x = randomData . nextInt ( Integer . MIN_VALUE , Integer . MAX_VALUE ) ; int y = randomData . nextInt ( Integer . MIN_VALUE , Integer . MAX_VALUE ) ; "<AssertPlaceHolder>" ; }
|
org . junit . Assert . assertFalse ( ( x == y ) )
|
removeAllViews_shouldCallOnChildViewRemovedWithEachChild ( ) { android . view . View view = new android . view . View ( context ) ; android . view . ViewGroup viewGroup = new android . widget . FrameLayout ( context ) ; viewGroup . addView ( view ) ; org . robolectric . shadows . ShadowViewGroupTest . TestOnHierarchyChangeListener testListener = new org . robolectric . shadows . ShadowViewGroupTest . TestOnHierarchyChangeListener ( ) ; viewGroup . setOnHierarchyChangeListener ( testListener ) ; viewGroup . removeAllViews ( ) ; "<AssertPlaceHolder>" ; } wasCalled ( ) { return wasCalled ; }
|
org . junit . Assert . assertTrue ( testListener . wasCalled ( ) )
|
testOrderBy ( ) { int offset = 0 ; int limit = 20 ; long count = 1 ; java . lang . String abbrName = "abbr<sp>name" ; java . lang . String name = "name" ; org . lnu . is . resource . address . type . AddressTypeResource resource = new org . lnu . is . resource . address . type . AddressTypeResource ( ) ; resource . setAbbrName ( abbrName ) ; resource . setName ( name ) ; java . util . List < org . lnu . is . resource . address . type . AddressTypeResource > entities = java . util . Arrays . asList ( resource ) ; org . lnu . is . resource . search . PagedResultResource < org . lnu . is . resource . address . type . AddressTypeResource > expected = new org . lnu . is . resource . search . PagedResultResource ( "/addresstypes" ) ; expected . setResources ( entities ) ; expected . setCount ( count ) ; expected . setLimit ( limit ) ; expected . setOffset ( offset ) ; org . lnu . is . pagination . OrderBy orderBy1 = new org . lnu . is . pagination . OrderBy ( "abbrName" , org . lnu . is . pagination . OrderByType . ASC ) ; org . lnu . is . pagination . OrderBy orderBy2 = new org . lnu . is . pagination . OrderBy ( "name" , org . lnu . is . pagination . OrderByType . DESC ) ; java . util . List < org . lnu . is . pagination . OrderBy > orders = java . util . Arrays . asList ( orderBy1 , orderBy2 ) ; org . lnu . is . resource . search . PagedRequest < org . lnu . is . resource . address . type . AddressTypeResource > request = new org . lnu . is . resource . search . PagedRequest < org . lnu . is . resource . address . type . AddressTypeResource > ( ) ; request . setOffset ( offset ) ; request . setLimit ( limit ) ; request . setOrders ( orders ) ; when ( facade . getResources ( org . mockito . Matchers . < org . lnu . is . resource . search . PagedRequest < org . lnu . is . resource . address . type . AddressTypeResource > > any ( ) ) ) . thenReturn ( expected ) ; java . lang . String response = getJson ( expected , false ) ; org . lnu . is . resource . search . PagedResultResource < org . lnu . is . resource . address . type . AddressTypeResource > actual = unit . getPagedResource ( request ) ; mockMvc . perform ( get ( "/addresstypes" ) ) . andExpect ( status ( ) . isOk ( ) ) . andExpect ( content ( ) . string ( response ) ) ; "<AssertPlaceHolder>" ; } getPagedResource ( org . lnu . is . resource . search . PagedRequest ) { org . lnu . is . web . rest . controller . admin . unit . type . AdminUnitTypeController . LOGGER . info ( "Getting<sp>paged<sp>result<sp>for<sp>admin<sp>unit<sp>types:{}" , request ) ; return facade . getResources ( request ) ; }
|
org . junit . Assert . assertEquals ( expected , actual )
|
testSetDefaultMetric ( ) { reachability . setDefaultMetric ( ( ( byte ) ( 0 ) ) ) ; result2 = reachability . defaultMetric ( ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; }
|
org . junit . Assert . assertThat ( result2 , org . hamcrest . CoreMatchers . is ( ( ( byte ) ( 0 ) ) ) )
|
testVerwantschapBroerKrijgtKindMetZus ( ) { final nl . bzk . brp . model . operationeel . kern . ActieModel actie = new nl . bzk . brp . model . operationeel . kern . ActieModel ( new nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortActieAttribuut ( nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortActie . DUMMY ) , null , null , new nl . bzk . brp . model . algemeen . attribuuttype . kern . DatumEvtDeelsOnbekendAttribuut ( 20130101 ) , null , new nl . bzk . brp . model . algemeen . attribuuttype . kern . DatumTijdAttribuut ( new java . util . Date ( ) ) , null ) ; final nl . bzk . brp . model . hisvolledig . impl . kern . PersoonHisVolledigImpl vader = maakPersoon ( 1 ) ; final nl . bzk . brp . model . hisvolledig . impl . kern . PersoonHisVolledigImpl moeder = maakPersoon ( 2 ) ; final nl . bzk . brp . model . hisvolledig . impl . kern . PersoonHisVolledigImpl kind = maakPersoon ( 3 ) ; nl . bzk . brp . util . RelatieTestUtil . bouwFamilieRechtelijkeBetrekking ( vader , moeder , kind , nl . bzk . brp . model . algemeen . attribuuttype . kern . DatumAttribuut . vandaag ( ) . getWaarde ( ) , actie ) ; final nl . bzk . brp . model . hisvolledig . impl . kern . FamilierechtelijkeBetrekkingHisVolledigImpl relatie1 = nl . bzk . brp . util . RelatieTestUtil . haalFamilieRechtelijkeBetrekkingUitPersoonBetrokkenhedenWaarPersoonKindInIs ( kind ) ; org . springframework . test . util . ReflectionTestUtils . setField ( relatie1 , nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . definitieregels . BRBY0001Test . ID , 1 ) ; final nl . bzk . brp . model . hisvolledig . impl . kern . PersoonHisVolledigImpl kind2 = maakPersoon ( 4 ) ; nl . bzk . brp . util . RelatieTestUtil . bouwFamilieRechtelijkeBetrekking ( vader , moeder , kind2 , nl . bzk . brp . model . algemeen . attribuuttype . kern . DatumAttribuut . vandaag ( ) . getWaarde ( ) , actie ) ; final nl . bzk . brp . model . hisvolledig . impl . kern . FamilierechtelijkeBetrekkingHisVolledigImpl relatie2 = nl . bzk . brp . util . RelatieTestUtil . haalFamilieRechtelijkeBetrekkingUitPersoonBetrokkenhedenWaarPersoonKindInIs ( kind ) ; org . springframework . test . util . ReflectionTestUtils . setField ( relatie2 , nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . definitieregels . BRBY0001Test . ID , 2 ) ; final boolean resultaat = brby0001 . isErVerwantschap ( new nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView ( kind ) , new nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView ( kind2 ) ) ; "<AssertPlaceHolder>" ; } isErVerwantschap ( nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView , nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView ) { boolean verwantschap = false ; final java . util . Map < nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView , nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortBetrokkenheid > familiePersoon1 = maakLijstPersonenMetFamilieRechtelijkeBetrekking ( persoon1 ) ; final java . util . Map < nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView , nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortBetrokkenheid > familiePersoon2 = maakLijstPersonenMetFamilieRechtelijkeBetrekking ( persoon2 ) ; for ( final Map . Entry < nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView , nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortBetrokkenheid > entry1 : familiePersoon1 . entrySet ( ) ) { final nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView persoon = entry1 . getKey ( ) ; for ( final Map . Entry < nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView , nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortBetrokkenheid > entry2 : familiePersoon2 . entrySet ( ) ) { final nl . bzk . brp . model . hisvolledig . momentview . kern . PersoonView persoonHisVolledigView = entry2 . getKey ( ) ; break ; } } } return verwantschap ; }
|
org . junit . Assert . assertTrue ( resultaat )
|
testGetCurrentHistoryUserCallerPrincipalNull ( ) { doReturn ( null ) . when ( sessionContext ) . getCallerPrincipal ( ) ; doReturn ( null ) . when ( em ) . find ( any ( java . lang . Class . class ) , any ( ) ) ; dataService . find ( org . oscm . dataservice . bean . PlatformUser . class , 0 ) ; "<AssertPlaceHolder>" ; } getCurrentHistoryUser ( ) { return org . oscm . dataservice . bean . DataServiceBean . CURRENT_HISTORY_USER . get ( ) ; }
|
org . junit . Assert . assertEquals ( "" , org . oscm . dataservice . bean . DataServiceBean . getCurrentHistoryUser ( ) )
|
testGetPrincipalProviderFromIncompleteCallback ( ) { org . apache . jackrabbit . oak . spi . security . authentication . AbstractLoginModule loginModule = org . apache . jackrabbit . oak . spi . security . authentication . AbstractLoginModuleTest . initLoginModule ( org . apache . jackrabbit . oak . spi . security . authentication . AbstractLoginModuleTest . TestCredentials . class , new org . apache . jackrabbit . oak . spi . security . authentication . AbstractLoginModuleTest . TestCallbackHandler ( ) ) ; "<AssertPlaceHolder>" ; } getPrincipalProvider ( ) { return principalProvider ; }
|
org . junit . Assert . assertNull ( loginModule . getPrincipalProvider ( ) )
|
shouldConvertIterableOfObjectsToArray ( ) { final java . lang . Object [ ] originalArray = new java . lang . Object [ ] { new uk . gov . gchq . gaffer . data . element . Entity ( "entity" ) , new uk . gov . gchq . gaffer . data . element . Edge . Builder ( ) . group ( "edge" ) , new uk . gov . gchq . gaffer . operation . data . EntitySeed ( "vertex" ) , new uk . gov . gchq . gaffer . operation . data . EdgeSeed ( "src" , "dest" , true ) , 1 , 2 , 1.5 } ; final java . lang . Iterable < java . lang . Object > originalResults = new uk . gov . gchq . gaffer . commonutil . iterable . WrappedCloseableIterable ( java . util . Arrays . asList ( originalArray ) ) ; final uk . gov . gchq . gaffer . store . operation . handler . output . ToArrayHandler < java . lang . Object > handler = new uk . gov . gchq . gaffer . store . operation . handler . output . ToArrayHandler ( ) ; final uk . gov . gchq . gaffer . operation . impl . output . ToArray operation = mock ( uk . gov . gchq . gaffer . operation . impl . output . ToArray . class ) ; given ( operation . getInput ( ) ) . willReturn ( originalResults ) ; final java . lang . Object [ ] results = handler . doOperation ( operation , new uk . gov . gchq . gaffer . store . Context ( ) , null ) ; "<AssertPlaceHolder>" ; } doOperation ( uk . gov . gchq . gaffer . operation . impl . ForEach , uk . gov . gchq . gaffer . store . Context , uk . gov . gchq . gaffer . store . Store ) { if ( null == ( forEach . getOperation ( ) ) ) { throw new uk . gov . gchq . gaffer . operation . OperationException ( "Operation<sp>cannot<sp>be<sp>null" ) ; } if ( null == ( forEach . getInput ( ) ) ) { throw new uk . gov . gchq . gaffer . operation . OperationException ( "Inputs<sp>cannot<sp>be<sp>null" ) ; } final java . util . List < O > results = new java . util . ArrayList ( ) ; for ( final I input : forEach . getInput ( ) ) { final uk . gov . gchq . gaffer . operation . Operation clonedOperation = forEach . getOperation ( ) . shallowClone ( ) ; uk . gov . gchq . gaffer . store . operation . handler . util . OperationHandlerUtil . updateOperationInput ( clonedOperation , input ) ; results . add ( executeOperation ( clonedOperation , context , store ) ) ; } return results ; }
|
org . junit . Assert . assertArrayEquals ( originalArray , results )
|
testRegularTopNWithEmptyDataSetAndNoneOutcome ( ) { inputContainer . add ( emptyInputRowSet . container ( ) ) ; inputOutcomes . add ( RecordBatch . IterOutcome . NONE ) ; final org . apache . drill . exec . physical . impl . MockRecordBatch mockInputBatch = new org . apache . drill . exec . physical . impl . MockRecordBatch ( operatorFixture . getFragmentContext ( ) , opContext , inputContainer , inputOutcomes , emptyInputRowSet . container ( ) . getSchema ( ) ) ; final org . apache . drill . exec . physical . config . TopN topNConfig = new org . apache . drill . exec . physical . config . TopN ( null , org . apache . drill . shaded . guava . com . google . common . collect . Lists . newArrayList ( ordering ( "id_left" , RelFieldCollation . Direction . DESCENDING , RelFieldCollation . NullDirection . FIRST ) ) , false , 4 ) ; final org . apache . drill . exec . physical . impl . TopN . TopNBatch topNBatch = new org . apache . drill . exec . physical . impl . TopN . TopNBatch ( topNConfig , operatorFixture . getFragmentContext ( ) , mockInputBatch ) ; "<AssertPlaceHolder>" ; } next ( ) { }
|
org . junit . Assert . assertTrue ( ( ( topNBatch . next ( ) ) == ( RecordBatch . IterOutcome . NONE ) ) )
|
testMixedSimpleAdd ( ) { junit . samples . money . IMoney expected = junit . samples . money . MoneyBag . create ( f12CHF , f7USD ) ; "<AssertPlaceHolder>" ; } add ( org . junit . rules . TestRule ) { testRules . add ( testRule ) ; }
|
org . junit . Assert . assertEquals ( expected , f12CHF . add ( f7USD ) )
|
dateHeader ( ) { just . niubi . httprequest . HttpRequestTest . handler = new just . niubi . httprequest . RequestHandler ( ) { @ just . niubi . httprequest . Override public void handle ( org . eclipse . jetty . server . Request request , javax . servlet . http . HttpServletResponse response ) { response . setStatus ( just . niubi . httprequest . HTTP_OK ) ; response . setDateHeader ( "Date" , 66000 ) ; } } ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { just . niubi . cache . MapCache . CacheObject cacheObject = cachePool . get ( key ) ; if ( null != cacheObject ) { long cur = ( java . lang . System . currentTimeMillis ( ) ) / 1000 ; if ( ( ( cacheObject . getExpired ( ) ) <= 0 ) || ( ( cacheObject . getExpired ( ) ) > cur ) ) { java . lang . Object result = cacheObject . getValue ( ) ; return ( ( T ) ( result ) ) ; } } return null ; }
|
org . junit . Assert . assertEquals ( 66000 , get ( just . niubi . httprequest . HttpRequestTest . url ) . date ( ) )
|
testRenameDirectoryConcurrent ( ) { org . junit . Assume . assumeTrue ( renameSupported ( ) ) ; org . apache . hadoop . fs . Path src = this . path ( "/test/hadoop/file/" ) ; org . apache . hadoop . fs . Path child1 = this . path ( "/test/hadoop/file/1" ) ; org . apache . hadoop . fs . Path child2 = this . path ( "/test/hadoop/file/2" ) ; org . apache . hadoop . fs . Path child3 = this . path ( "/test/hadoop/file/3" ) ; org . apache . hadoop . fs . Path child4 = this . path ( "/test/hadoop/file/4" ) ; this . createFile ( child1 ) ; this . createFile ( child2 ) ; this . createFile ( child3 ) ; this . createFile ( child4 ) ; org . apache . hadoop . fs . Path dst = this . path ( "/test/new" ) ; super . rename ( src , dst , true , false , true ) ; "<AssertPlaceHolder>" ; } listStatus ( org . apache . hadoop . fs . Path ) { incrementCounter ( Statistic . INVOCATION_LIST_STATUS ) ; statistics . incrementReadOps ( 1 ) ; org . apache . hadoop . fs . ozone . BasicOzoneFileSystem . LOG . trace ( "listStatus()<sp>path:{}" , f ) ; org . apache . hadoop . fs . ozone . BasicOzoneFileSystem . ListStatusIterator iterator = new org . apache . hadoop . fs . ozone . BasicOzoneFileSystem . ListStatusIterator ( f ) ; iterator . iterate ( ) ; return iterator . getStatuses ( ) ; }
|
org . junit . Assert . assertEquals ( 4 , this . fs . listStatus ( dst ) . length )
|
testOctetCounting ( ) { handler . setSyslogType ( SyslogType . RFC5424 ) ; handler . setUseMessageDelimiter ( false ) ; handler . setUseCountingFraming ( true ) ; final java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; handler . setOutputStream ( out ) ; final java . util . Calendar cal = org . jboss . logmanager . ext . handlers . SyslogHandlerTests . getCalendar ( ) ; handler . setHostname ( "test" ) ; org . jboss . logmanager . ExtLogRecord record = org . jboss . logmanager . ext . handlers . SyslogHandlerTests . createRecord ( cal , org . jboss . logmanager . ext . handlers . SyslogHandlerTests . MSG ) ; java . lang . String expectedMessage = ( ( ( ( ( "<14>1<sp>2012-01-09T04:39:22.000" + ( org . jboss . logmanager . ext . handlers . SyslogHandlerTests . calculateTimeZone ( cal ) ) ) + "<sp>test<sp>java<sp>" ) + ( handler . getPid ( ) ) ) + "<sp>-<sp>-<sp>" ) + ( org . jboss . logmanager . ext . handlers . SyslogHandlerTests . BOM ) ) + ( org . jboss . logmanager . ext . handlers . SyslogHandlerTests . MSG ) ; expectedMessage = ( ( org . jboss . logmanager . ext . handlers . SyslogHandlerTests . byteLen ( expectedMessage ) ) + "<sp>" ) + expectedMessage ; handler . publish ( record ) ; "<AssertPlaceHolder>" ; } createString ( java . io . ByteArrayOutputStream ) { return out . toString ( org . jboss . logmanager . ext . handlers . SyslogHandlerTests . ENCODING ) ; }
|
org . junit . Assert . assertEquals ( expectedMessage , org . jboss . logmanager . ext . handlers . SyslogHandlerTests . createString ( out ) )
|
testDeleteDataInDefaultGraph ( ) { java . lang . String queryStr = "PREFIX<sp>dc:<sp><http://purl.org/dc/elements/1.1/><sp>DELETE<sp>DATA<sp>{<sp>\n" + "<http://example/book1><sp>dc:title<sp>\"A<sp>new<sp>book\"<sp>;<sp>dc:creator<sp>\"A.N.Other\"<sp>.<sp>}" ; org . apache . clerezza . rdf . core . sparql . SparqlPreParser parser ; parser = new org . apache . clerezza . rdf . core . sparql . SparqlPreParser ( org . apache . clerezza . rdf . core . access . TcManager . getInstance ( ) ) ; java . util . Set < org . apache . clerezza . commons . rdf . IRI > referredGraphs = parser . getReferredGraphs ( queryStr , org . apache . clerezza . rdf . core . sparql . SparqlPreParserTest . DEFAULT_GRAPH ) ; "<AssertPlaceHolder>" ; } toArray ( ) { java . lang . Object [ ] result = base . toArray ( ) ; for ( int i = 0 ; i < ( result . length ) ; i ++ ) { org . apache . clerezza . commons . rdf . Triple triple = ( ( org . apache . clerezza . commons . rdf . Triple ) ( result [ i ] ) ) ; result [ i ] = toTargetTriple ( triple ) ; } return result ; }
|
org . junit . Assert . assertTrue ( referredGraphs . toArray ( ) [ 0 ] . equals ( org . apache . clerezza . rdf . core . sparql . SparqlPreParserTest . DEFAULT_GRAPH ) )
|
testWithNull ( ) { final boolean [ ] nextCalled = new boolean [ 1 ] ; greycat . Tasks . newTask ( ) . thenDo ( new greycat . ActionFunction ( ) { @ greycatTest . internal . task . Override public void eval ( greycat . TaskContext ctx ) { ctx . continueWith ( null ) ; } } ) . then ( setAttribute ( "name" , Type . STRING , "node" ) ) . then ( remove ( "name" ) ) . thenDo ( new greycat . ActionFunction ( ) { @ greycatTest . internal . task . Override public void eval ( greycat . TaskContext ctx ) { nextCalled [ 0 ] = true ; } } ) . execute ( graph , null ) ; "<AssertPlaceHolder>" ; } execute ( greycat . internal . task . Graph , greycat . internal . task . Callback ) { executeWith ( graph , null , callback ) ; }
|
org . junit . Assert . assertTrue ( nextCalled [ 0 ] )
|
testIsColumnCreationEnabledWhenActiveDecisionTableHasEditableColumns ( ) { final org . drools . workbench . screens . guided . dtable . client . widget . table . GuidedDecisionTableView . Presenter dtPresenter = mock ( GuidedDecisionTableView . Presenter . class ) ; doReturn ( false ) . when ( dtPresenter ) . isReadOnly ( ) ; doReturn ( true ) . when ( dtPresenter ) . hasEditableColumns ( ) ; final boolean isColumnCreationEnabled = presenter . isColumnCreationEnabled ( java . util . Optional . of ( dtPresenter ) ) ; "<AssertPlaceHolder>" ; } isColumnCreationEnabled ( java . util . Optional ) { if ( ! ( dtPresenter . isPresent ( ) ) ) { return false ; } final org . drools . workbench . screens . guided . dtable . client . widget . table . GuidedDecisionTableView . Presenter dt = dtPresenter . get ( ) ; final boolean decisionTableIsEditable = ! ( dt . isReadOnly ( ) ) ; final boolean decisionTableHasEditableColumns = dt . hasEditableColumns ( ) ; return decisionTableHasEditableColumns && decisionTableIsEditable ; }
|
org . junit . Assert . assertTrue ( isColumnCreationEnabled )
|
testComposeCloseables ( ) { final int [ ] counter = new int [ ] { 0 } ; final java . io . Closeable closeable = new java . io . Closeable ( ) { @ com . annimon . stream . internal . Override public void close ( ) throws java . io . IOException { ( counter [ 0 ] ) ++ ; } } ; java . lang . Runnable composed = com . annimon . stream . internal . Compose . closeables ( closeable , closeable ) ; composed . run ( ) ; "<AssertPlaceHolder>" ; } closeables ( java . io . Closeable , java . io . Closeable ) { return new java . lang . Runnable ( ) { @ com . annimon . stream . internal . Override public void run ( ) { try { a . close ( ) ; } catch ( java . lang . Throwable e1 ) { try { b . close ( ) ; } catch ( java . lang . Throwable ignore ) { } com . annimon . stream . internal . Compose . handleException ( e1 ) ; } try { b . close ( ) ; } catch ( java . lang . Throwable e2 ) { com . annimon . stream . internal . Compose . handleException ( e2 ) ; } } } ; }
|
org . junit . Assert . assertThat ( counter [ 0 ] , org . hamcrest . CoreMatchers . is ( 2 ) )
|
testIntSorting ( ) { java . lang . String str = "global<sp>java.util.List<sp>list\n" + ( ( ( ( ( ( ( ( "rule<sp>R\n" + "dialect<sp>\"mvel\"\n" ) + "when\n" ) + "<sp>$number<sp>:<sp>Number()\n" ) + "<sp>not<sp>Number(intValue<sp><<sp>$number.intValue)\n" ) + "then\n" ) + "when\n" 1 ) + "<sp>delete($number);\n" ) + "when\n" 0 ) ; org . kie . api . KieBase kbase = loadKnowledgeBaseFromString ( str ) ; org . kie . api . runtime . KieSession ksession = kbase . newKieSession ( ) ; java . util . List < java . lang . Integer > list = new java . util . ArrayList ( ) ; ksession . setGlobal ( "list" , list ) ; ksession . insert ( 5 ) ; ksession . insert ( 6 ) ; ksession . insert ( 4 ) ; ksession . insert ( 1 ) ; ksession . insert ( 2 ) ; ksession . fireAllRules ( ) ; "<AssertPlaceHolder>" ; } fireAllRules ( ) { return 0 ; }
|
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( 1 , 2 , 4 , 5 , 6 ) , list )
|
testGetChannelNotExists ( ) { thrown . expect ( org . hyperledger . fabric . sdk . exception . NetworkConfigurationException . class ) ; thrown . expectMessage ( "Channel<sp>MissingChannel<sp>not<sp>found<sp>in<sp>configuration<sp>file.<sp>Found<sp>channel<sp>names:<sp>foo" ) ; java . io . File f = new java . io . File ( "src/test/fixture/sdkintegration/network_configs/network-config.yaml" ) ; org . hyperledger . fabric . sdk . NetworkConfig config = org . hyperledger . fabric . sdk . NetworkConfig . fromYamlFile ( f ) ; "<AssertPlaceHolder>" ; org . hyperledger . fabric . sdk . HFClient client = org . hyperledger . fabric . sdk . HFClient . createNewInstance ( ) ; client . setCryptoSuite ( CryptoSuite . Factory . getCryptoSuite ( ) ) ; client . setUserContext ( org . hyperledger . fabric . sdk . testutils . TestUtils . getMockUser ( org . hyperledger . fabric . sdk . NetworkConfigTest . USER_NAME , org . hyperledger . fabric . sdk . NetworkConfigTest . USER_MSP_ID ) ) ; client . loadChannelFromConfig ( "MissingChannel" , config ) ; } fromYamlFile ( java . io . File ) { return org . hyperledger . fabric . sdk . NetworkConfig . fromFile ( configFile , false ) ; }
|
org . junit . Assert . assertNotNull ( config )
|
testEmptyLocalACL ( ) { org . nuxeo . ecm . core . api . DocumentModel doc = session . createDocumentModel ( "/" , "folder" , "Folder" ) ; doc = session . createDocument ( doc ) ; org . nuxeo . ecm . core . api . security . ACP acp = doc . getACP ( ) ; org . nuxeo . ecm . core . api . security . ACL acl = acp . getOrCreateACL ( ) ; doc . setACP ( acp , true ) ; session . save ( ) ; org . nuxeo . runtime . transaction . TransactionHelper . commitOrRollbackTransaction ( ) ; org . nuxeo . runtime . transaction . TransactionHelper . startTransaction ( ) ; session = coreFeature . reopenCoreSession ( ) ; doc = session . getDocument ( doc . getRef ( ) ) ; acp = doc . getACP ( ) ; acl = acp . getACL ( ACL . LOCAL_ACL ) ; "<AssertPlaceHolder>" ; } getACL ( java . lang . String ) { java . lang . String localName = ( name == null ) ? org . nuxeo . ecm . core . api . security . ACL . LOCAL_ACL : name ; return acls . stream ( ) . filter ( ( acl ) -> acl . getName ( ) . equals ( localName ) ) . findFirst ( ) . orElse ( null ) ; }
|
org . junit . Assert . assertNull ( acl )
|
fetchSecuritiesTest ( ) { storeSecurityTest ( ) ; java . util . concurrent . atomic . AtomicInteger counter = new java . util . concurrent . atomic . AtomicInteger ( 2 ) ; java . util . concurrent . CountDownLatch latch = new java . util . concurrent . CountDownLatch ( 2 ) ; java . lang . Thread th1 = new java . lang . Thread ( new com . bagri . server . hazelcast . impl . ResultCursorTest . DocQuery ( "IBM" , latch , counter ) ) ; java . lang . Thread th2 = new java . lang . Thread ( new com . bagri . server . hazelcast . impl . ResultCursorTest . DocQuery ( "VFINX" , latch , counter ) ) ; th1 . start ( ) ; th2 . start ( ) ; latch . await ( ) ; "<AssertPlaceHolder>" ; } get ( ) { com . bagri . rest . BagriRestServer . logger . trace ( "get" ) ; return rePro ; }
|
org . junit . Assert . assertEquals ( 0 , counter . get ( ) )
|
jsonLiteralObjectKeysWithEscapedBackslashesAreAllowed ( ) { io . burt . jmespath . Expression < java . lang . Object > expected = JsonLiteral ( "{\"c:\\\\\\\\windows\\\\path\":1}" ) ; io . burt . jmespath . Expression < java . lang . Object > actual = compile ( "`{\"c:\\\\\\\\windows\\\\path\":1}`" ) ; "<AssertPlaceHolder>" ; } compile ( java . lang . String ) { return runtime . compile ( str ) ; }
|
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( expected ) )
|
unbalancedPropertyFeedWithInlineFeed ( ) { org . apache . olingo . odata2 . api . edm . Edm edm = org . apache . olingo . odata2 . testutil . mock . MockFacade . getMockEdm ( ) ; org . apache . olingo . odata2 . api . edm . EdmTyped imageUrlProperty = edm . getEntityType ( "RefScenario" , "EmployeeId" 6 ) . getProperty ( "EmployeeId" 4 ) ; org . apache . olingo . odata2 . api . edm . EdmFacets facets = mock ( org . apache . olingo . odata2 . api . edm . EdmFacets . class ) ; when ( facets . getMaxLength ( ) ) . thenReturn ( 1 ) ; when ( ( ( org . apache . olingo . odata2 . api . edm . EdmProperty ) ( imageUrlProperty ) ) . getFacets ( ) ) . thenReturn ( facets ) ; org . apache . olingo . odata2 . client . api . ep . EntityCollection roomsData = new org . apache . olingo . odata2 . client . api . ep . EntityCollection ( ) ; org . apache . olingo . odata2 . client . api . ep . Entity room1Data = new org . apache . olingo . odata2 . client . api . ep . Entity ( ) ; room1Data . addProperty ( "Id" , "EmployeeId" 0 ) ; room1Data . addProperty ( "Name" , "EmployeeId" 2 ) ; room1Data . addProperty ( "Seats" , new java . lang . Integer ( 20 ) ) ; room1Data . setWriteProperties ( org . apache . olingo . odata2 . client . api . ep . EntitySerializerProperties . serviceRoot ( org . apache . olingo . odata2 . client . core . ep . serializer . BASE_URI ) . validatingFacets ( true ) . build ( ) ) ; org . apache . olingo . odata2 . client . api . ep . EntityCollection innerData = new org . apache . olingo . odata2 . client . api . ep . EntityCollection ( ) ; org . apache . olingo . odata2 . client . api . ep . Entity data = new org . apache . olingo . odata2 . client . api . ep . Entity ( ) ; data . addProperty ( "EmployeeId" , "EmployeeId" 0 ) ; data . addProperty ( "EmployeeName" , "EmployeeId" 5 ) ; data . addProperty ( "RoomId" , "EmployeeId" 0 ) ; innerData . addEntity ( data ) ; data = new org . apache . olingo . odata2 . client . api . ep . Entity ( ) ; data . addProperty ( "EmployeeId" , "EmployeeId" 0 ) ; data . addProperty ( "RoomId" , "EmployeeId" 0 ) ; innerData . addEntity ( data ) ; room1Data . addNavigation ( "nr_Employees" , innerData ) ; roomsData . addEntity ( room1Data ) ; org . apache . olingo . odata2 . client . api . ep . Entity room2Data = new org . apache . olingo . odata2 . client . api . ep . Entity ( ) ; room2Data . addProperty ( "Id" , "EmployeeId" 1 ) ; room2Data . addProperty ( "Name" , "EmployeeId" 3 ) ; room2Data . addProperty ( "Seats" , new java . lang . Integer ( 10 ) ) ; room2Data . setWriteProperties ( org . apache . olingo . odata2 . client . api . ep . EntitySerializerProperties . serviceRoot ( org . apache . olingo . odata2 . client . core . ep . serializer . BASE_URI ) . validatingFacets ( true ) . build ( ) ) ; innerData = new org . apache . olingo . odata2 . client . api . ep . EntityCollection ( ) ; data = new org . apache . olingo . odata2 . client . api . ep . Entity ( ) ; data . addProperty ( "EmployeeId" , "EmployeeId" 1 ) ; data . addProperty ( "EmployeeName" , "EmpName2" ) ; data . addProperty ( "RoomId" , "EmployeeId" 1 ) ; innerData . addEntity ( data ) ; data = new org . apache . olingo . odata2 . client . api . ep . Entity ( ) ; data . addProperty ( "EmployeeId" , "EmployeeId" 1 ) ; data . addProperty ( "RoomId" , "EmployeeId" 1 ) ; innerData . addEntity ( data ) ; room2Data . addNavigation ( "nr_Employees" , innerData ) ; roomsData . addEntity ( room2Data ) ; org . apache . olingo . odata2 . api . edm . EdmEntitySet entitySet = edm . getDefaultEntityContainer ( ) . getEntitySet ( "Rooms" ) ; roomsData . setCollectionProperties ( org . apache . olingo . odata2 . client . api . ep . EntityCollectionSerializerProperties . serviceRoot ( org . apache . olingo . odata2 . client . core . ep . serializer . BASE_URI ) . build ( ) ) ; final org . apache . olingo . odata2 . api . processor . ODataResponse response = new org . apache . olingo . odata2 . client . core . ep . AtomSerializerDeserializer ( ) . writeFeed ( entitySet , roomsData ) ; final java . lang . String xmlString = org . apache . olingo . odata2 . testutil . helper . StringHelper . inputStreamToString ( ( ( java . io . InputStream ) ( response . getEntity ( ) ) ) ) ; "<AssertPlaceHolder>" ; verifyRoomsFeedWithInlineEmployeeFeed ( xmlString , org . apache . olingo . odata2 . client . core . ep . serializer . BASE_URI ) ; } getEntity ( ) { return entity ; }
|
org . junit . Assert . assertNotNull ( xmlString )
|
testParseFlatTree ( ) { org . antlr . runtime . tree . TreeWizard wiz = new org . antlr . runtime . tree . TreeWizard ( org . antlr . test . TestTreeWizard . adaptor , org . antlr . test . TestTreeWizard . tokens ) ; org . antlr . runtime . tree . CommonTree t = ( ( org . antlr . runtime . tree . CommonTree ) ( wiz . create ( "(nil<sp>A<sp>B<sp>C)" ) ) ) ; boolean valid = wiz . parse ( t , "(nil<sp>A<sp>B<sp>C)" ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String , java . util . List ) { org . antlr . runtime . debug . ParseTreeBuilder actions = new org . antlr . runtime . debug . ParseTreeBuilder ( grammar . name ) ; try { parse ( startRule , actions , visitedStates ) ; } catch ( org . antlr . tool . RecognitionException re ) { } return actions . getTree ( ) ; }
|
org . junit . Assert . assertTrue ( valid )
|
testMakeMetricDatum ( ) { org . sagebionetworks . cloudwatch . ProfileData pd = new org . sagebionetworks . cloudwatch . ProfileData ( ) ; pd . setValue ( 123.0 ) ; pd . setName ( "name" ) ; pd . setNamespace ( "nameSpace" ) ; pd . setTimestamp ( new java . util . Date ( ) ) ; pd . setUnit ( "Count" ) ; com . amazonaws . services . cloudwatch . model . MetricDatum expectedDatum = new com . amazonaws . services . cloudwatch . model . MetricDatum ( ) ; expectedDatum . setMetricName ( pd . getName ( ) ) ; expectedDatum . setValue ( pd . getValue ( ) ) ; expectedDatum . setUnit ( pd . getUnit ( ) ) ; expectedDatum . setTimestamp ( pd . getTimestamp ( ) ) ; com . amazonaws . services . cloudwatch . model . MetricDatum mdResult = org . sagebionetworks . cloudwatch . Consumer . makeMetricDatum ( pd ) ; "<AssertPlaceHolder>" ; } makeMetricDatum ( org . sagebionetworks . cloudwatch . ProfileData ) { if ( pd == null ) throw new java . lang . IllegalArgumentException ( "ProfileData<sp>cannot<sp>be<sp>null" ) ; if ( ( pd . getName ( ) ) == null ) throw new java . lang . IllegalArgumentException ( "ProfileData.name<sp>cannot<sp>be<sp>null" ) ; com . amazonaws . services . cloudwatch . model . MetricDatum toReturn = new com . amazonaws . services . cloudwatch . model . MetricDatum ( ) ; toReturn . setMetricName ( pd . getName ( ) ) ; toReturn . setValue ( pd . getValue ( ) ) ; toReturn . setUnit ( com . amazonaws . services . cloudwatch . model . StandardUnit . valueOf ( pd . getUnit ( ) ) ) ; toReturn . setTimestamp ( pd . getTimestamp ( ) ) ; java . util . List < com . amazonaws . services . cloudwatch . model . Dimension > dimensions = new java . util . ArrayList < com . amazonaws . services . cloudwatch . model . Dimension > ( ) ; if ( ( pd . getDimension ( ) ) != null ) { for ( java . lang . String key : pd . getDimension ( ) . keySet ( ) ) { com . amazonaws . services . cloudwatch . model . Dimension dimension = new com . amazonaws . services . cloudwatch . model . Dimension ( ) ; java . lang . String value = pd . getDimension ( ) . get ( key ) ; key = org . sagebionetworks . cloudwatch . Consumer . scrubDimensionString ( key ) ; value = org . sagebionetworks . cloudwatch . Consumer . scrubDimensionString ( value ) ; dimension . setName ( key ) ; dimension . setValue ( value ) ; dimensions . add ( dimension ) ; } toReturn . setDimensions ( dimensions ) ; } if ( ( pd . getMetricStats ( ) ) != null ) { com . amazonaws . services . cloudwatch . model . StatisticSet statisticValues = new com . amazonaws . services . cloudwatch . model . StatisticSet ( ) ; statisticValues . setMaximum ( pd . getMetricStats ( ) . getMaximum ( ) ) ; statisticValues . setMinimum ( pd . getMetricStats ( ) . getMinimum ( ) ) ; statisticValues . setSampleCount ( pd . getMetricStats ( ) . getCount ( ) ) ; statisticValues . setSum ( pd . getMetricStats ( ) . getSum ( ) ) ; toReturn . setStatisticValues ( statisticValues ) ; } return toReturn ; }
|
org . junit . Assert . assertEquals ( expectedDatum , mdResult )
|
testReadWithReadOnlyTransactionClosed ( ) { org . opendaylight . controller . sal . core . spi . data . DOMStoreReadTransaction readTx = domStore . newReadOnlyTransaction ( ) ; "<AssertPlaceHolder>" ; readTx . close ( ) ; org . opendaylight . controller . md . sal . dom . store . impl . InMemoryDataStoreTest . doReadAndThrowEx ( readTx ) ; } newReadOnlyTransaction ( ) { return new org . opendaylight . controller . md . sal . binding . impl . BindingDOMReadTransactionAdapter ( getDelegate ( ) . newReadOnlyTransaction ( ) , getCodec ( ) ) ; }
|
org . junit . Assert . assertNotNull ( readTx )
|
testEpsilon ( ) { final int dataSize = 10000 ; final int querySize = 30 ; final org . apache . mahout . common . distance . DistanceMeasure metric = new org . apache . mahout . common . distance . EuclideanDistanceMeasure ( ) ; final java . util . List < java . lang . Integer > scales = com . google . common . collect . ImmutableList . of ( 10 ) ; final java . util . List < java . lang . Integer > multipliers = com . google . common . collect . ImmutableList . of ( 1 , 2 , 3 , 5 ) ; for ( java . lang . Integer scale : scales ) { for ( java . lang . Integer multiplier : multipliers ) { int d = scale * multiplier ; if ( d == 1 ) { continue ; } final org . apache . mahout . knn . search . Matrix data = new org . apache . mahout . knn . search . DenseMatrix ( ( dataSize + querySize ) , d ) ; final org . apache . mahout . knn . LumpyData clusters = new org . apache . mahout . knn . LumpyData ( d , 0.05 , 10 ) ; for ( org . apache . mahout . knn . search . MatrixSlice row : data ) { row . vector ( ) . assign ( clusters . sample ( ) ) ; } org . apache . mahout . knn . search . Matrix q = data . viewPart ( 0 , querySize , 0 , d ) ; org . apache . mahout . knn . search . Matrix m = data . viewPart ( querySize , dataSize , 0 , d ) ; org . apache . mahout . knn . search . BruteSearch brute = new org . apache . mahout . knn . search . BruteSearch ( metric ) ; brute . addAllMatrixSlices ( m ) ; org . apache . mahout . knn . search . FastProjectionSearch test = new org . apache . mahout . knn . search . FastProjectionSearch ( metric , d , 20 ) ; test . addAllMatrixSlices ( m ) ; int bigRatio = 0 ; double averageOverlap = 0 ; for ( org . apache . mahout . knn . search . MatrixSlice qx : q ) { final org . apache . mahout . knn . search . Vector query = qx . vector ( ) ; final java . util . List < org . apache . mahout . math . random . WeightedThing < org . apache . mahout . knn . search . Vector > > r1 = brute . search ( query , 20 ) ; org . apache . mahout . knn . search . Vector v1 = r1 . get ( 0 ) . getValue ( ) ; final java . util . List < org . apache . mahout . math . random . WeightedThing < org . apache . mahout . knn . search . Vector > > r2 = test . search ( query , 30 ) ; org . apache . mahout . knn . search . Vector v2 = r2 . get ( 0 ) . getValue ( ) ; for ( org . apache . mahout . knn . search . Vector v : com . google . common . collect . Iterables . transform ( r1 , new org . apache . mahout . knn . search . FastProjectionSearchTest . StripWeight ( ) ) ) { for ( org . apache . mahout . knn . search . Vector w : com . google . common . collect . Iterables . transform ( r2 , new org . apache . mahout . knn . search . FastProjectionSearchTest . StripWeight ( ) ) ) { if ( v . equals ( w ) ) ++ averageOverlap ; } } if ( ( ( r2 . get ( 0 ) . getWeight ( ) ) / ( r1 . get ( 0 ) . getWeight ( ) ) ) > 1.4 ) { System . out . printf ( "[fast-projection]<sp>%f<sp>[brute]<sp>%f<sp>[ratio]<sp>%f\n" , r2 . get ( 0 ) . getWeight ( ) , r1 . get ( 0 ) . getWeight ( ) , ( ( r2 . get ( 0 ) . getWeight ( ) ) / ( r1 . get ( 0 ) . getWeight ( ) ) ) ) ; bigRatio ++ ; } } averageOverlap = averageOverlap / ( q . rowSize ( ) ) ; "<AssertPlaceHolder>" ; } } } equals ( java . lang . Object ) { if ( ( this ) == o ) return true ; if ( ! ( o instanceof org . apache . mahout . knn . search . HashedVector ) ) { return ( o instanceof org . apache . mahout . math . Vector ) && ( ( this . minus ( ( ( org . apache . mahout . math . Vector ) ( o ) ) ) . norm ( 1 ) ) == 0 ) ; } else { org . apache . mahout . knn . search . HashedVector v = ( ( org . apache . mahout . knn . search . HashedVector ) ( o ) ) ; return ( ( v . hash ) == ( this . hash ) ) && ( ( this . minus ( v ) . norm ( 1 ) ) == 0 ) ; } }
|
org . junit . Assert . assertTrue ( ( averageOverlap > 7 ) )
|
testOwnersActions ( ) { final java . lang . String resourceId = ( SamConstants . WORKFLOW_PREFIX ) + ( io . dockstore . webservice . permissions . sam . SamPermissionsImplTest . FOO_WORKFLOW_NAME ) ; when ( resourcesApiMock . resourceAction ( SamConstants . RESOURCE_TYPE , resourceId , io . dockstore . webservice . permissions . sam . SamConstants . toSamAction ( Role . Action . SHARE ) ) ) . thenReturn ( Boolean . TRUE ) ; final java . util . List < io . dockstore . webservice . permissions . Role . Action > actions = samPermissionsImpl . getActionsForWorkflow ( userMock , fooWorkflow ) ; "<AssertPlaceHolder>" ; } getActionsForWorkflow ( io . dockstore . webservice . core . User , io . dockstore . webservice . core . Workflow ) { if ( workflow . getUsers ( ) . contains ( user ) ) { return java . util . Arrays . asList ( Role . Action . values ( ) ) ; } return java . util . Collections . emptyList ( ) ; }
|
org . junit . Assert . assertEquals ( Role . Action . values ( ) . length , actions . size ( ) )
|
testShuffleFragment ( ) { double [ ] a = new double [ 100 ] ; for ( int i = a . length ; ( i -- ) != 0 ; ) a [ i ] = - 1 ; for ( int i = 10 ; i < 30 ; i ++ ) a [ i ] = i - 10 ; double [ ] [ ] b = it . unimi . dsi . fastutil . doubles . DoubleBigArrays . wrap ( a ) ; it . unimi . dsi . fastutil . doubles . DoubleBigArrays . shuffle ( b , 10 , 30 , new java . util . Random ( ) ) ; boolean [ ] c = new boolean [ 20 ] ; for ( int i = 20 ; ( i -- ) != 0 ; ) { "<AssertPlaceHolder>" ; c [ ( ( int ) ( it . unimi . dsi . fastutil . doubles . DoubleBigArrays . get ( b , ( i + 10 ) ) ) ) ] = true ; } }
|
org . junit . Assert . assertFalse ( c [ ( ( int ) ( it . unimi . dsi . fastutil . doubles . DoubleBigArrays . get ( b , ( i + 10 ) ) ) ) ] )
|
testFormatInitTimeMillis ( ) { com . sun . mail . util . logging . CollectorFormatter f = new com . sun . mail . util . logging . CollectorFormatter ( "{10}" , ( ( java . util . logging . Formatter ) ( null ) ) , ( ( com . sun . mail . util . logging . Comparator < com . sun . mail . util . logging . LogRecord > ) ( null ) ) ) ; java . lang . String init = f . getTail ( ( ( com . sun . mail . util . logging . Handler ) ( null ) ) ) ; java . text . NumberFormat . getIntegerInstance ( ) . parse ( init ) ; tickMilli ( ) ; "<AssertPlaceHolder>" ; } equals ( javax . activation . ActivationDataFlavor ) { return ( isMimeTypeEqual ( dataFlavor . mimeType ) ) && ( ( dataFlavor . getRepresentationClass ( ) ) == ( representationClass ) ) ; }
|
org . junit . Assert . assertTrue ( init . equals ( f . getTail ( ( ( com . sun . mail . util . logging . Handler ) ( null ) ) ) ) )
|
test_insert_by_filter ( ) { final org . nutz . dao . test . meta . Pet p = org . nutz . dao . test . normal . FieldFilterTest . pet ( "xh" ) . setNickName ( "XiaoHei" ) ; org . nutz . dao . FieldFilter . create ( org . nutz . dao . test . meta . Pet . class , "id|name" ) . run ( new org . nutz . trans . Atom ( ) { public void run ( ) { dao . insert ( p ) ; } } ) ; org . nutz . dao . test . meta . Pet p2 = dao . fetch ( org . nutz . dao . test . meta . Pet . class , p . getId ( ) ) ; "<AssertPlaceHolder>" ; } getNickName ( ) { return nickName ; }
|
org . junit . Assert . assertNull ( p2 . getNickName ( ) )
|
testSwitchTwoBoundVars ( ) { final java . lang . String query1 = "" + ( ( ( ( ( ( ( ( ( "SELECT<sp>?a<sp>?b<sp>?c<sp>" + "{" ) + "<sp>?a<sp><uri:p0><sp>?c<sp>." ) + "<sp>?b<uri:p1><sp>?c<sp>." 1 ) + "<sp>?b<uri:p1><sp>?c<sp>." 0 ) + "<sp>?b<uri:p1><sp>?c<sp>." ) + "<sp>OPTIONAL{<sp>?a<sp><uri:p1><sp>?b<sp>}<sp>." ) + "<sp>?a<sp><uri:p2><sp><uri:o2>.<sp>" ) + "<sp>?b<uri:p1><sp>?c<sp>." 2 ) + "}" ) ; final java . lang . String query2 = "" + ( ( ( ( ( ( ( "SELECT<sp>?a<sp>?b<sp>?c<sp>" + "{" ) + "<sp>?a<sp><uri:p2><sp><uri:o2>.<sp>" ) + "<sp>?b<sp><uri:p3><sp><uri:o3>.<sp>" ) + "<sp>OPTIONAL{<sp>?a<sp><uri:p1><sp>?b<sp>}<sp>." ) + "<sp>?a<sp><uri:p0><sp>?c<sp>." ) + "<sp>?b<uri:p1><sp>?c<sp>" ) + "}" ) ; final org . eclipse . rdf4j . query . parser . sparql . SPARQLParser parser = new org . eclipse . rdf4j . query . parser . sparql . SPARQLParser ( ) ; final org . eclipse . rdf4j . query . parser . ParsedQuery pq1 = parser . parseQuery ( query1 , null ) ; final org . eclipse . rdf4j . query . parser . ParsedQuery pq2 = parser . parseQuery ( query2 , null ) ; final org . eclipse . rdf4j . query . algebra . TupleExpr te1 = pq1 . getTupleExpr ( ) ; final org . eclipse . rdf4j . query . algebra . TupleExpr te2 = pq2 . getTupleExpr ( ) ; final org . eclipse . rdf4j . query . algebra . TupleExpr unOpt = te1 . clone ( ) ; final java . util . List < org . eclipse . rdf4j . query . algebra . QueryModelNode > remainingNodes = getNodes ( te1 ) ; final java . util . Set < org . eclipse . rdf4j . query . algebra . QueryModelNode > unMatchedNodes = new java . util . HashSet ( ) ; unMatchedNodes . add ( remainingNodes . get ( 1 ) ) ; unMatchedNodes . add ( remainingNodes . get ( 2 ) ) ; final org . apache . rya . indexing . external . tupleSet . SimpleExternalTupleSet pcj = new org . apache . rya . indexing . external . tupleSet . SimpleExternalTupleSet ( ( ( org . eclipse . rdf4j . query . algebra . Projection ) ( te2 ) ) ) ; final java . util . List < org . apache . rya . indexing . external . tupleSet . ExternalTupleSet > externalList = new java . util . ArrayList ( ) ; externalList . add ( pcj ) ; provider . setIndices ( externalList ) ; final org . apache . rya . indexing . pcj . matching . PCJOptimizer optimizer = new org . apache . rya . indexing . pcj . matching . PCJOptimizer ( externalList , false , provider ) ; optimizer . optimize ( te1 , null , null ) ; "<AssertPlaceHolder>" ; } validatePcj ( org . eclipse . rdf4j . query . algebra . TupleExpr , org . eclipse . rdf4j . query . algebra . TupleExpr , java . util . List , java . util . Set ) { final org . apache . rya . indexing . IndexPlanValidator . IndexedExecutionPlanGenerator iep = new org . apache . rya . indexing . IndexPlanValidator . IndexedExecutionPlanGenerator ( unOptTup , pcjs ) ; final java . util . List < org . apache . rya . indexing . external . tupleSet . ExternalTupleSet > indexList = iep . getNormalizedIndices ( ) ; final java . util . Set < org . eclipse . rdf4j . query . algebra . QueryModelNode > indexSet = new java . util . HashSet ( ) ; for ( final org . apache . rya . indexing . external . tupleSet . ExternalTupleSet etup : indexList ) { indexSet . add ( etup ) ; } final java . util . Set < org . eclipse . rdf4j . query . algebra . QueryModelNode > tupNodes = com . google . common . collect . Sets . newHashSet ( getNodes ( optTupleExp ) ) ; final java . util . Set < org . eclipse . rdf4j . query . algebra . QueryModelNode > diff = com . google . common . collect . Sets . difference ( tupNodes , indexSet ) ; return diff . equals ( expUnmatchedNodes ) ; }
|
org . junit . Assert . assertEquals ( true , validatePcj ( te1 , unOpt , externalList , unMatchedNodes ) )
|
testInt8Array ( ) { final de . mirkosertic . bytecoder . api . web . Int8Array a = de . mirkosertic . bytecoder . api . web . OpaqueArrays . createInt8Array ( 10 ) ; a . set ( 1 , ( ( byte ) ( 99 ) ) ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { return data . get ( aValue ) ; }
|
org . junit . Assert . assertEquals ( ( ( byte ) ( 99 ) ) , a . get ( 1 ) , 0 )
|
lockBasics ( ) { org . apache . jackrabbit . oak . plugins . index . importer . AbortingIndexerLock lock = new org . apache . jackrabbit . oak . plugins . index . importer . AbortingIndexerLock ( infoService ) ; when ( statsMBean . getStatus ( ) ) . thenReturn ( IndexStatsMBean . STATUS_DONE ) ; org . apache . jackrabbit . oak . plugins . index . importer . SimpleToken lockToken = lock . lock ( "async" ) ; "<AssertPlaceHolder>" ; verify ( statsMBean ) . abortAndPause ( ) ; lock . unlock ( lockToken ) ; verify ( statsMBean ) . resume ( ) ; } lock ( java . lang . String ) { org . apache . jackrabbit . oak . spi . state . NodeBuilder builder = nodeStore . getRoot ( ) . builder ( ) ; org . apache . jackrabbit . oak . spi . state . NodeBuilder async = builder . child ( ":async" ) ; java . lang . String leaseName = org . apache . jackrabbit . oak . plugins . index . AsyncIndexUpdate . leasify ( asyncIndexerLane ) ; long leaseEndTime = ( clock . getTime ( ) ) + ( org . apache . jackrabbit . oak . plugins . index . importer . ClusterNodeStoreLock . LOCK_TIMEOUT ) ; if ( async . hasProperty ( leaseName ) ) { log . info ( ( "AsyncIndexer<sp>found<sp>to<sp>be<sp>running<sp>currently.<sp>Lease<sp>update<sp>would<sp>cause<sp>its" + "commit<sp>to<sp>fail.<sp>Such<sp>a<sp>failure<sp>should<sp>be<sp>ignored" ) ) ; } async . setProperty ( leaseName , leaseEndTime ) ; async . setProperty ( org . apache . jackrabbit . oak . plugins . index . importer . ClusterNodeStoreLock . lockName ( asyncIndexerLane ) , true ) ; org . apache . jackrabbit . oak . plugins . index . importer . NodeStoreUtils . mergeWithConcurrentCheck ( nodeStore , builder ) ; log . info ( "Acquired<sp>the<sp>lock<sp>for<sp>async<sp>indexer<sp>lane<sp>[{}]" , asyncIndexerLane ) ; return new org . apache . jackrabbit . oak . plugins . index . importer . ClusteredLockToken ( asyncIndexerLane , leaseEndTime ) ; }
|
org . junit . Assert . assertNotNull ( lockToken )
|
testGetExtensions ( ) { final java . lang . String [ ] exts = filter . getExtensions ( ) ; "<AssertPlaceHolder>" ; } getExtensions ( ) { return extensions ; }
|
org . junit . Assert . assertEquals ( 2 , exts . length )
|
testSaveDocuments ( ) { when ( solrClientMock . add ( eq ( org . springframework . data . solr . core . SolrTemplateTests . COLLECTION_NAME ) , anyCollection ( ) , eq ( ( - 1 ) ) ) ) . thenReturn ( new org . apache . solr . client . solrj . response . UpdateResponse ( ) ) ; java . util . List < org . apache . solr . common . SolrInputDocument > collection = java . util . Collections . singletonList ( org . springframework . data . solr . core . SolrTemplateTests . SIMPLE_DOCUMENT ) ; org . apache . solr . client . solrj . response . UpdateResponse updateResponse = solrTemplate . saveDocuments ( org . springframework . data . solr . core . SolrTemplateTests . COLLECTION_NAME , collection ) ; "<AssertPlaceHolder>" ; verify ( solrClientMock , times ( 1 ) ) . add ( eq ( org . springframework . data . solr . core . SolrTemplateTests . COLLECTION_NAME ) , eq ( collection ) , eq ( ( - 1 ) ) ) ; }
|
org . junit . Assert . assertNotNull ( updateResponse )
|
testContainsWithLater ( ) { au . gov . ga . earthsci . core . temporal . BigTime start = new au . gov . ga . earthsci . core . temporal . BigTime ( java . math . BigInteger . valueOf ( 1000 ) ) ; au . gov . ga . earthsci . core . temporal . BigTime end = new au . gov . ga . earthsci . core . temporal . BigTime ( java . math . BigInteger . valueOf ( 10000 ) ) ; au . gov . ga . earthsci . core . temporal . timescale . BasicTimePeriod period1 = au . gov . ga . earthsci . core . temporal . timescale . BasicTimePeriod . Builder . buildTimePeriod ( "id" , "name" , "description" ) . from ( start , true ) . to ( end , true ) . atLevel ( au . gov . ga . earthsci . core . temporal . timescale . BasicTimePeriodTest . level1 ) . build ( ) ; au . gov . ga . earthsci . core . temporal . BigTime test = new au . gov . ga . earthsci . core . temporal . BigTime ( java . math . BigInteger . valueOf ( 10001 ) ) ; "<AssertPlaceHolder>" ; } contains ( au . gov . ga . earthsci . common . math . vector . Vector3 ) { if ( point == null ) { return false ; } return ( ( xRange . contains ( point . x ) ) && ( yRange . contains ( point . y ) ) ) && ( zRange . contains ( point . z ) ) ; }
|
org . junit . Assert . assertFalse ( period1 . contains ( test ) )
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.