input
stringlengths 28
18.7k
| output
stringlengths 39
1.69k
|
|---|---|
builderTest ( ) { org . apache . rya . indexing . pcj . fluo . app . query . FluoQuery . Builder fluoBuilder = org . apache . rya . indexing . pcj . fluo . app . query . FluoQuery . builder ( ) ; java . lang . String queryId = org . apache . rya . indexing . pcj . fluo . app . NodeType . generateNewFluoIdForType ( NodeType . QUERY ) ; java . lang . String projectionId = org . apache . rya . indexing . pcj . fluo . app . NodeType . generateNewFluoIdForType ( NodeType . PROJECTION ) ; java . lang . String joinId = org . apache . rya . indexing . pcj . fluo . app . NodeType . generateNewFluoIdForType ( NodeType . JOIN ) ; java . lang . String leftSp = org . apache . rya . indexing . pcj . fluo . app . NodeType . generateNewFluoIdForType ( NodeType . STATEMENT_PATTERN ) ; java . lang . String rightSp = org . apache . rya . indexing . pcj . fluo . app . NodeType . generateNewFluoIdForType ( NodeType . STATEMENT_PATTERN ) ; java . util . List < java . lang . String > expected = java . util . Arrays . asList ( queryId , projectionId , joinId , leftSp , rightSp ) ; org . apache . rya . indexing . pcj . fluo . app . query . QueryMetadata . Builder queryBuilder = org . apache . rya . indexing . pcj . fluo . app . query . QueryMetadata . builder ( queryId ) ; queryBuilder . setChildNodeId ( projectionId ) ; org . apache . rya . indexing . pcj . fluo . app . query . ProjectionMetadata . Builder projectionBuilder = org . apache . rya . indexing . pcj . fluo . app . query . ProjectionMetadata . builder ( projectionId ) ; projectionBuilder . setChildNodeId ( joinId ) ; org . apache . rya . indexing . pcj . fluo . app . query . JoinMetadata . Builder joinBuilder = org . apache . rya . indexing . pcj . fluo . app . query . JoinMetadata . builder ( joinId ) ; joinBuilder . setLeftChildNodeId ( leftSp ) ; joinBuilder . setRightChildNodeId ( rightSp ) ; org . apache . rya . indexing . pcj . fluo . app . query . StatementPatternMetadata . Builder left = org . apache . rya . indexing . pcj . fluo . app . query . StatementPatternMetadata . builder ( leftSp ) ; org . apache . rya . indexing . pcj . fluo . app . query . StatementPatternMetadata . Builder right = org . apache . rya . indexing . pcj . fluo . app . query . StatementPatternMetadata . builder ( rightSp ) ; fluoBuilder . setQueryMetadata ( queryBuilder ) ; fluoBuilder . addProjectionBuilder ( projectionBuilder ) ; fluoBuilder . addJoinMetadata ( joinBuilder ) ; fluoBuilder . addStatementPatternBuilder ( left ) ; fluoBuilder . addStatementPatternBuilder ( right ) ; org . apache . rya . indexing . pcj . fluo . app . query . QueryBuilderVisitorTest . QueryBuilderPrinter printer = new org . apache . rya . indexing . pcj . fluo . app . query . QueryBuilderVisitorTest . QueryBuilderPrinter ( fluoBuilder ) ; printer . visit ( ) ; "<AssertPlaceHolder>" ; } getIds ( ) { return ids ; }
|
org . junit . Assert . assertEquals ( expected , printer . getIds ( ) )
|
testExecuteGetMappingIndexRequest ( ) { java . lang . String mappingName = "testGetMapping" ; java . lang . String mappingSource = "{\"properties\":{\"testField\":{\"type\":\"keyword\"}}}" ; _putMapping ( mappingName , mappingSource ) ; com . liferay . portal . search . engine . adapter . index . GetMappingIndexRequest getMappingIndexRequest = new com . liferay . portal . search . engine . adapter . index . GetMappingIndexRequest ( new java . lang . String [ ] { com . liferay . portal . search . elasticsearch6 . internal . search . engine . adapter . ElasticsearchSearchEngineAdapterIndexRequestTest . _INDEX_NAME } , mappingName ) ; com . liferay . portal . search . engine . adapter . index . GetMappingIndexResponse getMappingIndexResponse = _searchEngineAdapter . execute ( getMappingIndexRequest ) ; java . util . Map < java . lang . String , java . lang . String > indexMappings = getMappingIndexResponse . getIndexMappings ( ) ; java . lang . String string = indexMappings . toString ( ) ; "<AssertPlaceHolder>" ; } contains ( java . lang . String ) { return com . liferay . segments . service . util . ServiceProps . _instance . _configuration . contains ( key ) ; }
|
org . junit . Assert . assertTrue ( string . contains ( mappingSource ) )
|
testOneMinus ( ) { org . nd4j . linalg . api . ndarray . INDArray in = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 3 , 3 , DataType . DOUBLE ) ; org . nd4j . linalg . api . ndarray . INDArray out = org . nd4j . linalg . ops . transforms . Transforms . timesOneMinus ( in , true ) ; org . nd4j . linalg . api . ndarray . INDArray exp = org . nd4j . linalg . factory . Nd4j . create ( new double [ ] { 0 , - 2.0 , - 6.0 } ) ; "<AssertPlaceHolder>" ; } create ( int [ ] , long [ ] , org . nd4j . linalg . api . buffer . DataType ) { lombok . val ret = org . nd4j . linalg . factory . Nd4j . INSTANCE . create ( data , shape , org . nd4j . linalg . factory . Nd4j . getStrides ( shape ) , type , org . nd4j . linalg . factory . Nd4j . getMemoryManager ( ) . getCurrentWorkspace ( ) ) ; org . nd4j . linalg . factory . Nd4j . logCreationIfNecessary ( ret ) ; return ret ; }
|
org . junit . Assert . assertEquals ( out , exp )
|
test_format_simple ( ) { final java . lang . String pattern = "getNextPrintPackage/{SessionID}/{TransactionID}" ; final java . util . Map < java . lang . String , java . lang . String > args = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; args . put ( "SessionID" , "1" ) ; args . put ( "TransactionID" , "2" ) ; final java . lang . String strExpected = "getNextPrintPackage/1/2" ; final java . lang . String strActual = de . metas . printing . client . util . MapFormat . format ( pattern , args ) ; "<AssertPlaceHolder>" ; } format ( java . lang . String , java . util . Map ) { return new de . metas . printing . client . util . MapFormat ( ) . setArguments ( arguments ) . format ( pattern ) ; }
|
org . junit . Assert . assertEquals ( strExpected , strActual )
|
testFactAssignmentField ( ) { java . lang . ClassLoader classLoader = java . lang . Thread . currentThread ( ) . getContextClassLoader ( ) ; org . kie . soup . project . datamodel . commons . types . TypeResolver typeResolver = new org . kie . soup . project . datamodel . commons . types . ClassTypeResolver ( new java . util . HashSet < java . lang . String > ( ) , classLoader ) ; typeResolver . addImport ( "org.drools.workbench.models.testscenarios.backend.Cheese" ) ; org . drools . workbench . models . testscenarios . backend . Mouse mouse = new org . drools . workbench . models . testscenarios . backend . Mouse ( ) ; org . drools . workbench . models . testscenarios . shared . FactAssignmentField factAssignmentField = new org . drools . workbench . models . testscenarios . shared . FactAssignmentField ( "cheese" , "Cheese" ) ; org . drools . workbench . models . testscenarios . backend . populators . FactAssignmentFieldPopulator factAssignmentFieldPopulator = new org . drools . workbench . models . testscenarios . backend . populators . FactAssignmentFieldPopulator ( mouse , factAssignmentField , typeResolver ) ; factAssignmentFieldPopulator . populate ( new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ) ; "<AssertPlaceHolder>" ; } getCheese ( ) { return this . cheese ; }
|
org . junit . Assert . assertNotNull ( mouse . getCheese ( ) )
|
registerOrganization_BrokerSupplier ( ) { runTX ( new java . util . concurrent . Callable < org . oscm . domobjects . Organization > ( ) { @ org . oscm . accountservice . bean . Override public org . oscm . domobjects . Organization call ( ) throws org . oscm . accountservice . bean . Exception { org . oscm . domobjects . Organization l_organization = new org . oscm . domobjects . Organization ( ) ; l_organization . setOrganizationId ( organizationId ) ; org . oscm . internal . vo . VOUserDetails userDetails = new org . oscm . internal . vo . VOUserDetails ( ) ; userDetails . setFirstName ( "Hans" ) ; userDetails . setLastName ( "Meier" ) ; userDetails . setEMail ( org . oscm . accountservice . bean . TEST_MAIL_ADDRESS ) ; userDetails . setUserId ( "admin" ) ; userDetails . setSalutation ( Salutation . MR ) ; userDetails . setPhone ( "(089)<sp>123<sp>456<sp>78" ) ; userDetails . setLocale ( "de" ) ; l_organization = accountMgmtLocal . registerOrganization ( l_organization , null , userDetails , null , "DE" , null , null , OrganizationRoleType . BROKER , OrganizationRoleType . SUPPLIER ) ; "<AssertPlaceHolder>" ; load ( l_organization ) ; return l_organization ; } } ) ; } getMarketplaceToOrganizations ( ) { return marketplaceToOrganizations ; }
|
org . junit . Assert . assertEquals ( 0 , l_organization . getMarketplaceToOrganizations ( ) . size ( ) )
|
doesNotStripMinFreshFromRequestWithoutNoCache ( ) { final org . apache . hc . core5 . http . HttpRequest req = new org . apache . hc . core5 . http . message . BasicHttpRequest ( "GET" , "/" ) ; req . setHeader ( "Cache-Control" , "min-fresh=10" ) ; final org . apache . hc . core5 . http . HttpRequest wrapper = RequestCopier . INSTANCE . copy ( req ) ; impl . makeRequestCompliant ( wrapper ) ; "<AssertPlaceHolder>" ; } getFirstHeader ( java . lang . String ) { return ( headergroup ) != null ? headergroup . getFirstHeader ( name ) : null ; }
|
org . junit . Assert . assertEquals ( "min-fresh=10" , wrapper . getFirstHeader ( "Cache-Control" ) . getValue ( ) )
|
setAndPutValues ( ) { java . lang . Object result = loop . Loop . run ( "test/loop/confidence/set_put.loop" ) ; java . util . Map < java . lang . String , java . lang . String > map = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; map . put ( "name" , "Sol" ) ; "<AssertPlaceHolder>" ; } put ( java . lang . String , byte [ ] ) { if ( null != ( rawClasses . putIfAbsent ( javaClass , bytes ) ) ) throw new java . lang . RuntimeException ( "Illegal<sp>attempt<sp>to<sp>define<sp>duplicate<sp>class" ) ; }
|
org . junit . Assert . assertEquals ( map , result )
|
AtoCwithOneHop ( ) { registry . addTransformer ( fromAtoB ) ; registry . addTransformer ( fromBtoC ) ; java . util . LinkedList < javax . xml . namespace . QName > list = new java . util . LinkedList < javax . xml . namespace . QName > ( ) ; boolean resolved = resolver . resolvePath ( list , org . switchyard . internal . transform . BaseTransformResolverTest . A , org . switchyard . internal . transform . BaseTransformResolverTest . C , 1 ) ; "<AssertPlaceHolder>" ; } resolvePath ( java . util . LinkedList , javax . xml . namespace . QName , javax . xml . namespace . QName , int ) { if ( limit < 0 ) { return false ; } -- limit ; if ( fromType . equals ( toType ) ) { return true ; } for ( org . switchyard . transform . Transformer fromT : _registry . getTransformersFrom ( fromType ) ) { if ( resolvePath ( path , fromT . getTo ( ) , toType , limit ) ) { path . addFirst ( fromT . getTo ( ) ) ; return true ; } } return false ; }
|
org . junit . Assert . assertFalse ( resolved )
|
testLocalDate ( ) { com . owlike . genson . ext . jodatime . LocalDate expected = new com . owlike . genson . ext . jodatime . LocalDate ( 2010 , 10 , 11 ) ; "<AssertPlaceHolder>" ; } deserialize ( com . owlike . genson . stream . ObjectReader , com . owlike . genson . Context ) { T obj ; if ( options . isAsTimestamp ( ) ) { switch ( options . getTimestampFormat ( ) ) { case ARRAY : obj = readArray ( reader ) ; break ; case OBJECT : obj = readObject ( reader ) ; break ; default : throw new java . lang . IllegalArgumentException ( "Unsupported<sp>timestamp<sp>format" ) ; } } else { obj = parseFunction . apply ( reader . valueAsString ( ) ) ; } return obj ; }
|
org . junit . Assert . assertEquals ( expected , genson . deserialize ( genson . serialize ( expected ) , com . owlike . genson . ext . jodatime . LocalDate . class ) )
|
writeEntityToWrapAnyExceptionThrownByWriter ( ) { java . io . OutputStream out = mock ( java . io . OutputStream . class ) ; java . lang . Exception thrown = new java . lang . Exception ( ) ; java . lang . RuntimeException expected = new java . lang . RuntimeException ( ) ; doThrow ( thrown ) . when ( mockEntityWriter ) . writeTo ( mockRequest , out ) ; mockStatic ( org . codegist . crest . CRestException . class ) ; when ( org . codegist . crest . CRestException . handle ( thrown ) ) . thenReturn ( expected ) ; try { toTest . writeEntityTo ( out ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } } writeEntityTo ( java . io . OutputStream ) { if ( ( entityContent ) == null ) { java . io . ByteArrayOutputStream cache = new java . io . ByteArrayOutputStream ( ) ; delegate . writeEntityTo ( cache ) ; this . entityContent = cache . toByteArray ( ) ; } org . codegist . common . io . IOs . copy ( new java . io . ByteArrayInputStream ( entityContent ) , out ) ; }
|
org . junit . Assert . assertSame ( expected , e )
|
testBadHMAC ( ) { byte [ ] plaintext = org . cryptonode . jncryptor . AES256JNCryptorInputStreamTest . getRandomBytes ( 256 ) ; final java . lang . String password = "Testing1234" ; org . cryptonode . jncryptor . JNCryptor cryptor = new org . cryptonode . jncryptor . AES256JNCryptor ( ) ; byte [ ] data = cryptor . encryptData ( plaintext , password . toCharArray ( ) ) ; data [ ( ( data . length ) - 1 ) ] = ( ( byte ) ( ( data [ ( ( data . length ) - 1 ) ] ) + 1 ) ) ; java . io . InputStream in = new org . cryptonode . jncryptor . AES256JNCryptorInputStream ( new java . io . ByteArrayInputStream ( data ) , password . toCharArray ( ) ) ; try { byte [ ] result = new byte [ plaintext . length ] ; org . apache . commons . io . IOUtils . readFully ( in , result ) ; "<AssertPlaceHolder>" ; } finally { in . close ( ) ; } } encryptData ( byte [ ] , char [ ] ) { org . cryptonode . jncryptor . Validate . notNull ( plaintext , "Plaintext<sp>cannot<sp>be<sp>null." ) ; org . cryptonode . jncryptor . Validate . notNull ( password , "Password<sp>cannot<sp>be<sp>null." ) ; org . cryptonode . jncryptor . Validate . isTrue ( ( ( password . length ) > 0 ) , "Password<sp>cannot<sp>be<sp>empty." ) ; byte [ ] encryptionSalt = org . cryptonode . jncryptor . AES256JNCryptor . getSecureRandomData ( org . cryptonode . jncryptor . AES256JNCryptor . SALT_LENGTH ) ; byte [ ] hmacSalt = org . cryptonode . jncryptor . AES256JNCryptor . getSecureRandomData ( org . cryptonode . jncryptor . AES256JNCryptor . SALT_LENGTH ) ; byte [ ] iv = org . cryptonode . jncryptor . AES256JNCryptor . getSecureRandomData ( org . cryptonode . jncryptor . AES256JNCryptor . AES_BLOCK_SIZE ) ; return encryptData ( plaintext , password , encryptionSalt , hmacSalt , iv ) ; }
|
org . junit . Assert . assertArrayEquals ( plaintext , result )
|
backhaulViolationAtEnd_shouldWork ( ) { buildAnotherScenarioWithOnlyOneVehicleAndWithoutAnyConstraintsBefore ( ) ; com . graphhopper . jsprit . core . analysis . SolutionAnalyser analyser = new com . graphhopper . jsprit . core . analysis . SolutionAnalyser ( vrp , solution , vrp . getTransportCosts ( ) ) ; com . graphhopper . jsprit . core . problem . solution . route . VehicleRoute route = solution . getRoutes ( ) . iterator ( ) . next ( ) ; java . lang . Boolean violation = analyser . hasBackhaulConstraintViolationAtActivity ( route . getEnd ( ) , route ) ; "<AssertPlaceHolder>" ; } getEnd ( ) { return end ; }
|
org . junit . Assert . assertFalse ( violation )
|
getTransportName ( ) { new mockit . Expectations ( ) { { invocation . getConfigTransportName ( ) ; result = org . apache . servicecomb . core . Const . RESTFUL ; } } ; "<AssertPlaceHolder>" ; } findTransportName ( org . apache . servicecomb . serviceregistry . discovery . DiscoveryContext , org . apache . servicecomb . serviceregistry . discovery . DiscoveryTreeNode ) { org . apache . servicecomb . core . Invocation invocation = context . getInputParameters ( ) ; return invocation . getConfigTransportName ( ) ; }
|
org . junit . Assert . assertEquals ( Const . RESTFUL , filter . findTransportName ( context , null ) )
|
canSetTextField ( ) { java . lang . String testString = "Testing" ; testPage . someInput . set ( testString ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return this . webElement . getAttribute ( "value" ) ; }
|
org . junit . Assert . assertEquals ( testString , testPage . someInput . getValue ( ) )
|
isDisabled_ResellerServiceKeyZero ( ) { ctrl . initializePartnerServiceView ( ) ; ctrl . getModel ( ) . setSelectedServiceKey ( 0 ) ; user . getUserRoles ( ) . add ( UserRoleType . RESELLER_MANAGER ) ; boolean b = ctrl . isDisabled ( ) ; "<AssertPlaceHolder>" ; } isDisabled ( ) { return ( ( ( model . getSelectedServiceKey ( ) ) <= 0 ) || ( ( ( model . getPartnerServiceDetails ( ) ) != null ) && ( ServiceStatus . ACTIVE . equals ( model . getPartnerServiceDetails ( ) . getStatus ( ) ) ) ) ) || ( ! ( ui . findUserBean ( ) . getUserFromSessionWithoutException ( ) . getUserRoles ( ) . contains ( UserRoleType . RESELLER_MANAGER ) ) ) ; }
|
org . junit . Assert . assertTrue ( b )
|
dontThrowExceptionWithAnnotationDeclarations ( ) { com . github . mauricioaniche . springlint . analysis . smells . SmellAnalysis tool = new com . github . mauricioaniche . springlint . analysis . smells . SmellAnalysis ( arch , ( ( basePath ) + "issues/1" ) ) ; com . github . mauricioaniche . springlint . domain . Repository repo = tool . run ( ) ; com . github . mauricioaniche . springlint . domain . SmellyClass sc = repo . getByClass ( "foo.Issue1" ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
|
org . junit . Assert . assertEquals ( "foo.Issue1" , sc . getName ( ) )
|
shouldNotReturnDuplicatesIfSameTypeSpecifiedMoreThanOnce ( ) { long nodeId = org . neo4j . server . rest . web . RestfulGraphDatabaseTest . helper . createNode ( ) ; org . neo4j . server . rest . web . RestfulGraphDatabaseTest . helper . createRelationship ( "LIKES" , nodeId , org . neo4j . server . rest . web . RestfulGraphDatabaseTest . helper . createNode ( ) ) ; javax . ws . rs . core . Response response = org . neo4j . server . rest . web . RestfulGraphDatabaseTest . service . getNodeRelationships ( nodeId , RelationshipDirection . all , new org . neo4j . server . rest . web . RestfulGraphDatabase . AmpersandSeparatedCollection ( "LIKES&LIKES" ) ) ; java . util . Collection < ? > array = ( ( java . util . Collection < ? > ) ( org . neo4j . server . rest . domain . JsonHelper . readJson ( org . neo4j . server . rest . web . RestfulGraphDatabaseTest . entityAsString ( response ) ) ) ) ; "<AssertPlaceHolder>" ; } size ( ) { return map . size ( ) ; }
|
org . junit . Assert . assertEquals ( 1 , array . size ( ) )
|
testGetProject ( ) { org . easymock . EasyMock . expect ( dnsRpcMock . getProject ( com . google . cloud . dns . DnsImplTest . EMPTY_RPC_OPTIONS ) ) . andReturn ( com . google . cloud . dns . DnsImplTest . PROJECT_INFO . toPb ( ) ) ; org . easymock . EasyMock . replay ( dnsRpcMock ) ; dns = options . getService ( ) ; com . google . cloud . dns . ProjectInfo projectInfo = dns . getProject ( ) ; "<AssertPlaceHolder>" ; } getProject ( ) { return project ; }
|
org . junit . Assert . assertEquals ( com . google . cloud . dns . DnsImplTest . PROJECT_INFO , projectInfo )
|
testCase1 ( ) { org . evosuite . testcase . DefaultTestCase tc = buildTestCase1 ( ) ; java . util . List < org . evosuite . symbolic . BranchCondition > branch_conditions = executeTest ( tc ) ; "<AssertPlaceHolder>" ; } size ( ) { return theTest . size ( ) ; }
|
org . junit . Assert . assertEquals ( 1 , branch_conditions . size ( ) )
|
testShouldReturnEmptyMapWithParamsNull ( ) { java . util . Map < java . lang . String , java . lang . Object > map = com . liferay . portal . kernel . util . MapUtil . toLinkedHashMap ( null ) ; "<AssertPlaceHolder>" ; } toString ( ) { return _ddmTemplate . toString ( ) ; }
|
org . junit . Assert . assertTrue ( map . toString ( ) , map . isEmpty ( ) )
|
testGenerateUri ( ) { java . lang . String expected = ( ( ( ( org . sagebionetworks . repo . manager . doi . DoiManagerImplTest . mockPrefix ) + "/" ) + ( org . sagebionetworks . repo . manager . doi . DoiManagerImplTest . entityId ) ) + "." ) + ( org . sagebionetworks . repo . manager . doi . DoiManagerImplTest . version ) ; java . lang . String actual = doiManager . generateDoiUri ( org . sagebionetworks . repo . manager . doi . DoiManagerImplTest . entityId , org . sagebionetworks . repo . manager . doi . DoiManagerImplTest . entityType , org . sagebionetworks . repo . manager . doi . DoiManagerImplTest . version ) ; "<AssertPlaceHolder>" ; } generateDoiUri ( java . lang . String , org . sagebionetworks . repo . model . ObjectType , java . lang . Long ) { if ( objectId == null ) { throw new java . lang . IllegalArgumentException ( "Object<sp>ID<sp>cannot<sp>be<sp>null" ) ; } if ( ( objectType == null ) || ( ! ( objectType . equals ( ObjectType . ENTITY ) ) ) ) { throw new java . lang . IllegalArgumentException ( "Object<sp>type<sp>must<sp>be<sp>entity." ) ; } java . lang . String uri = "" ; uri += ( stackConfiguration . getDoiPrefix ( ) ) + "/" ; uri += objectId ; if ( versionNumber != null ) { uri += "." + versionNumber ; } return uri ; }
|
org . junit . Assert . assertEquals ( expected , actual )
|
groupShouldBeEmptyWhenTheresNoRendererTest ( ) { org . uberfire . ext . layout . editor . client . api . LayoutDragComponentGroup componentGroup = perspectiveEditorReportingGroupProvider . getComponentGroup ( ) ; "<AssertPlaceHolder>" ; } getLayoutDragComponentIds ( ) { return components . keySet ( ) ; }
|
org . junit . Assert . assertTrue ( componentGroup . getLayoutDragComponentIds ( ) . isEmpty ( ) )
|
testCompress_IntDoubleEqual_Success ( ) { de . fraunhofer . iosb . ilt . frostserver . query . expression . Expression expectedResult = new de . fraunhofer . iosb . ilt . frostserver . query . expression . constant . BooleanConstant ( true ) ; de . fraunhofer . iosb . ilt . frostserver . query . expression . Expression result = new de . fraunhofer . iosb . ilt . frostserver . query . expression . function . comparison . GreaterEqual ( new de . fraunhofer . iosb . ilt . frostserver . query . expression . constant . IntegerConstant ( 1 ) , new de . fraunhofer . iosb . ilt . frostserver . query . expression . constant . DoubleConstant ( 1.0 ) ) . compress ( ) ; "<AssertPlaceHolder>" ; } compress ( ) { for ( int i = ( pathElements . size ( ) ) - 1 ; i > 0 ; i -- ) { if ( ( ( pathElements . get ( i ) ) instanceof de . fraunhofer . iosb . ilt . frostserver . path . EntityPathElement ) && ( ( pathElements . get ( ( i - 1 ) ) ) instanceof de . fraunhofer . iosb . ilt . frostserver . path . EntitySetPathElement ) ) { de . fraunhofer . iosb . ilt . frostserver . path . EntityPathElement epe = ( ( de . fraunhofer . iosb . ilt . frostserver . path . EntityPathElement ) ( pathElements . get ( i ) ) ) ; if ( ( epe . getId ( ) ) != null ) { setMainElement ( pathElements . get ( ( i - 1 ) ) ) ; pathElements . subList ( 0 , ( i - 1 ) ) . clear ( ) ; setIdentifiedElement ( epe ) ; return ; } } } }
|
org . junit . Assert . assertEquals ( expectedResult , result )
|
isInsert_false_notAnUpdate ( ) { final java . lang . String sparql = "SELECT<sp>*<sp>WHERE<sp>{<sp>?a<sp>?b<sp>?c<sp>.<sp>}" ; "<AssertPlaceHolder>" ; } isInsertWhere ( java . lang . String ) { requireNonNull ( sparql ) ; try { org . apache . rya . api . utils . QueryInvestigator . PARSER . parseUpdate ( sparql , null ) ; return java . util . regex . Pattern . matches ( "[\\s\\S]*?insert\\s*?\\{[\\s\\S]*?\\}[\\s\\S]*?where\\s*\\{[\\s\\S]*?\\}" , sparql . toLowerCase ( ) ) ; } catch ( final org . eclipse . rdf4j . query . MalformedQueryException updateE ) { try { org . apache . rya . api . utils . QueryInvestigator . PARSER . parseQuery ( sparql , null ) ; return false ; } catch ( final org . eclipse . rdf4j . query . MalformedQueryException queryE ) { throw updateE ; } } }
|
org . junit . Assert . assertFalse ( org . apache . rya . api . utils . QueryInvestigator . isInsertWhere ( sparql ) )
|
testLockAfterRead ( ) { final long readStamp = lock . optimisticRead ( ) ; lock . writeLock ( ) ; "<AssertPlaceHolder>" ; } validate ( long ) { return lock . validate ( stamp ) ; }
|
org . junit . Assert . assertFalse ( lock . validate ( readStamp ) )
|
testMacTestVectors ( ) { for ( com . google . crypto . tink . subtle . MacJceTest . MacTestVector t : com . google . crypto . tink . subtle . MacJceTest . HMAC_TEST_VECTORS ) { com . google . crypto . tink . Mac mac = new com . google . crypto . tink . subtle . MacJce ( t . algName , new javax . crypto . spec . SecretKeySpec ( t . key , "HMAC" ) , t . tag . length ) ; "<AssertPlaceHolder>" ; try { mac . verifyMac ( t . tag , t . message ) ; } catch ( java . security . GeneralSecurityException e ) { org . junit . Assert . fail ( "Valid<sp>MAC,<sp>should<sp>not<sp>throw<sp>exception" ) ; } } } computeMac ( byte [ ] ) { if ( primitives . getPrimary ( ) . getOutputPrefixType ( ) . equals ( OutputPrefixType . LEGACY ) ) { return com . google . crypto . tink . subtle . Bytes . concat ( primitives . getPrimary ( ) . getIdentifier ( ) , primitives . getPrimary ( ) . getPrimitive ( ) . computeMac ( com . google . crypto . tink . subtle . Bytes . concat ( data , formatVersion ) ) ) ; } return com . google . crypto . tink . subtle . Bytes . concat ( primitives . getPrimary ( ) . getIdentifier ( ) , primitives . getPrimary ( ) . getPrimitive ( ) . computeMac ( data ) ) ; }
|
org . junit . Assert . assertArrayEquals ( t . tag , mac . computeMac ( t . message ) )
|
shouldCreateChildRunnerForValidSingleDescriptionSuite ( ) { com . insightfullogic . lambdabehave . JunitSuiteRunner testee = new com . insightfullogic . lambdabehave . JunitSuiteRunner ( com . insightfullogic . lambdabehave . testcases . runner . ValidTestWithOneDescription . class ) ; "<AssertPlaceHolder>" ; } getChildren ( ) { return fRunners ; }
|
org . junit . Assert . assertEquals ( 1 , testee . getChildren ( ) . size ( ) )
|
testImplicitDocumentId ( ) { org . hibernate . search . test . id . Animal dog = new org . hibernate . search . test . id . Animal ( ) ; dog . setName ( "Dog" ) ; org . hibernate . Session s = openSession ( ) ; org . hibernate . Transaction tx = s . beginTransaction ( ) ; s . save ( dog ) ; tx . commit ( ) ; s . clear ( ) ; tx = s . beginTransaction ( ) ; java . util . List results = org . hibernate . search . Search . getFullTextSession ( s ) . createFullTextQuery ( new org . apache . lucene . search . TermQuery ( new org . apache . lucene . index . Term ( "name" , "dog" ) ) ) . list ( ) ; "<AssertPlaceHolder>" ; tx . commit ( ) ; s . close ( ) ; } size ( ) { return size ; }
|
org . junit . Assert . assertEquals ( 1 , results . size ( ) )
|
testLookup ( ) { final org . csstudio . archive . reader . channelarchiver . ChannelArchiverReader reader = new org . csstudio . archive . reader . channelarchiver . ChannelArchiverReader ( org . csstudio . archive . reader . channelarchiver . ChannelArchiverReaderTest . URL ) ; final java . lang . String pattern = "*" + ( org . csstudio . archive . reader . channelarchiver . ChannelArchiverReaderTest . CHANNEL . substring ( 3 ) ) ; System . out . println ( ( ( "Channels<sp>with<sp>pattern<sp>'" + pattern ) + "':" ) ) ; final java . lang . String [ ] names = reader . getNamesByPattern ( org . csstudio . archive . reader . channelarchiver . ChannelArchiverReaderTest . KEY , pattern ) ; for ( final java . lang . String name : names ) System . out . println ( name ) ; reader . close ( ) ; "<AssertPlaceHolder>" ; } contains ( java . lang . String ) { return preferences . contains ( name ) ; }
|
org . junit . Assert . assertTrue ( java . util . Arrays . asList ( names ) . contains ( org . csstudio . archive . reader . channelarchiver . ChannelArchiverReaderTest . CHANNEL ) )
|
testGetSize ( ) { classUnderTest . setSize ( "aTestString" ) ; "<AssertPlaceHolder>" ; } getSize ( ) { return this . _size ; }
|
org . junit . Assert . assertEquals ( "aTestString" , classUnderTest . getSize ( ) )
|
testGenerateSignatureParameterString ( ) { java . util . Map < java . lang . String , java . lang . String > testParamMap = new java . util . HashMap ( ) ; testParamMap . put ( "1.0" 2 , security . encode ( "1.0" 0 ) ) ; testParamMap . put ( "include_entities" , "true" ) ; testParamMap . put ( "oauth_consumer_key" , "xvz1evFS4wEEPTGEFPHBog" ) ; testParamMap . put ( "oauth_nonce" , "1.0" 1 ) ; testParamMap . put ( "oauth_signature_method" , "HMAC-SHA1" ) ; testParamMap . put ( "1.0" 4 , "1318622958" ) ; testParamMap . put ( "oauth_token" , "1.0" 3 ) ; testParamMap . put ( "1.0" 5 , "1.0" ) ; java . lang . String signature_parameter_string = security . generateSignatureParameterString ( testParamMap ) ; java . lang . String expected = "1.0" 6 ; "<AssertPlaceHolder>" ; } generateSignatureParameterString ( java . util . Map ) { java . util . SortedSet < java . lang . String > sortedKeys = new java . util . TreeSet ( allParamsMap . keySet ( ) ) ; java . util . StringJoiner stringJoiner = new java . util . StringJoiner ( "&" ) ; for ( java . lang . String key : sortedKeys ) { stringJoiner . add ( ( ( key + "=" ) + ( allParamsMap . get ( key ) ) ) ) ; } return stringJoiner . toString ( ) ; }
|
org . junit . Assert . assertEquals ( expected , signature_parameter_string )
|
testCreateQueryChainBlank ( ) { final java . util . List < org . apache . lucene . search . Query > query = new org . yes . cart . search . query . impl . ProductSkuIdSearchQueryBuilder ( ) . createQueryChain ( null , "sku.skuId" , "<sp>" ) ; "<AssertPlaceHolder>" ; } createQueryChain ( org . yes . cart . search . dto . NavigationContext , java . lang . String , java . lang . Object ) { java . lang . String strValue = "1" ; if ( value instanceof java . util . Collection ) { if ( org . apache . commons . collections . CollectionUtils . isNotEmpty ( ( ( java . util . Collection ) ( value ) ) ) ) { strValue = ( "0" . equals ( ( ( java . util . Collection ) ( value ) ) . iterator ( ) . next ( ) ) ) ? "0" : "1" ; } } else { strValue = ( "0" . equals ( value ) ) ? "0" : "1" ; } return java . util . Collections . singletonList ( createNumericQuery ( ( ( PRODUCT_SHOP_INSTOCK_FLAG_FIELD ) + strValue ) , navigationContext . getCustomerShopId ( ) ) ) ; }
|
org . junit . Assert . assertNull ( query )
|
testScalarEncoding ( ) { lombok . val scalar = org . nd4j . linalg . factory . Nd4j . trueScalar ( 2.0F ) ; com . google . flatbuffers . FlatBufferBuilder bufferBuilder = new com . google . flatbuffers . FlatBufferBuilder ( 0 ) ; lombok . val fb = scalar . toFlatArray ( bufferBuilder ) ; bufferBuilder . finish ( fb ) ; lombok . val db = bufferBuilder . dataBuffer ( ) ; lombok . val flat = org . nd4j . graph . FlatArray . getRootAsFlatArray ( db ) ; lombok . val restored = org . nd4j . linalg . factory . Nd4j . createFromFlatArray ( flat ) ; "<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 shape = new long [ ( rank * 2 ) + 4 ] ; for ( int e = 0 ; e < ( shape . length ) ; e ++ ) shape [ e ] = array . shape ( e ) ; char ordering = ( ( shape [ ( ( shape . length ) - 1 ) ] ) == 99 ) ? 'c' : 'f' ; lombok . val shapeOf = org . nd4j . linalg . api . shape . Shape . shapeOf ( shape ) ; lombok . val stridesOf = org . nd4j . linalg . api . shape . Shape . stridesOf ( shape ) ; lombok . val _dtype = org . nd4j . autodiff . samediff . SameDiff . getDataTypeFromByte ( dtype ) ; lombok . val _order = org . nd4j . autodiff . samediff . SameDiff . getOrderFromByte ( order ) ; lombok . val prod = ( rank > 0 ) ? org . nd4j . linalg . util . ArrayUtil . prod ( shapeOf ) : 1 ; lombok . val doubles = new double [ prod ] ; lombok . val bb = array . bufferAsByteBuffer ( ) ; switch ( _dtype ) { case DOUBLE : { lombok . val db = bb . order ( _order ) . asDoubleBuffer ( ) ; for ( int e = 0 ; e < prod ; e ++ ) doubles [ e ] = db . get ( e ) ; } break ; case FLOAT : { lombok . val fb = bb . order ( _order ) . asFloatBuffer ( ) ; for ( int e = 0 ; e < prod ; e ++ ) doubles [ e ] = ( ( double ) ( fb . get ( e ) ) ) ; } break ; case HALF : { lombok . val sb = bb . order ( _order ) . asShortBuffer ( ) ; for ( int e = 0 ; e < prod ; e ++ ) doubles [ e ] = ( ( double ) ( org . bytedeco . javacpp . indexer . HalfIndexer . toFloat ( ( ( int ) ( sb . get ( e ) ) ) ) ) ) ; } break ; default : throw new java . lang . UnsupportedOperationException ( ( ( "Unknown<sp>datatype:<sp>[" + _dtype ) + "]" ) ) ; } return org . nd4j . linalg . factory . Nd4j . create ( doubles , shapeOf , stridesOf , 0 , ordering ) ; }
|
org . junit . Assert . assertEquals ( scalar , restored )
|
targetClassShouldBeValid ( ) { com . navercorp . volleyextensions . request . AbstractConverterRequestTest . ConcreteConverterRequest < com . navercorp . volleyextensions . request . AbstractConverterRequestTest . TestClass > request = createConcreteClassInstance ( url , clazz , listener ) ; "<AssertPlaceHolder>" ; } getTargetClassExternal ( ) { return com . navercorp . volleyextensions . request . AbstractConverterRequestTest . ConcreteConverterRequest . getTargetClass ( ) ; }
|
org . junit . Assert . assertThat ( request . getTargetClassExternal ( ) , org . hamcrest . CoreMatchers . equalTo ( com . navercorp . volleyextensions . request . AbstractConverterRequestTest . TestClass . class ) )
|
testWithNullProperty ( ) { com . seovic . core . extractor . MapExtractor ext = new com . seovic . core . extractor . MapExtractor ( null ) ; java . util . Map < java . lang . String , java . lang . Object > target = createTestTarget ( ) ; "<AssertPlaceHolder>" ; } extract ( java . lang . Object ) { if ( target == null ) { return null ; } if ( ! ( target instanceof java . util . Map ) ) { throw new java . lang . IllegalArgumentException ( "Extraction<sp>target<sp>is<sp>not<sp>a<sp>Map" ) ; } return ( ( T ) ( ( ( java . util . Map ) ( target ) ) . get ( key ) ) ) ; }
|
org . junit . Assert . assertNull ( ext . extract ( target ) )
|
testGetShaCertificates ( ) { java . util . List < com . google . firebase . projectmanagement . ShaCertificate > certificateList = new java . util . ArrayList ( ) ; certificateList . add ( com . google . firebase . projectmanagement . AndroidAppTest . SHA_CERTIFICATE ) ; when ( androidAppService . getShaCertificates ( com . google . firebase . projectmanagement . AndroidAppTest . APP_ID ) ) . thenReturn ( certificateList ) ; java . util . List < com . google . firebase . projectmanagement . ShaCertificate > res = androidApp . getShaCertificates ( ) ; "<AssertPlaceHolder>" ; } getShaCertificates ( ) { return androidAppService . getShaCertificates ( appId ) ; }
|
org . junit . Assert . assertEquals ( res , certificateList )
|
fromFilenames_Collection_empty ( ) { try { net . coobird . thumbnailator . Thumbnails . fromFilenames ( java . util . Collections . < java . lang . String > emptyList ( ) ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalArgumentException e ) { "<AssertPlaceHolder>" ; throw e ; } } fromFilenames ( java . lang . Iterable ) { net . coobird . thumbnailator . Thumbnails . checkForNull ( files , "Cannot<sp>specify<sp>null<sp>for<sp>input<sp>files." ) ; net . coobird . thumbnailator . Thumbnails . checkForEmpty ( files , "Cannot<sp>specify<sp>an<sp>empty<sp>collection<sp>for<sp>input<sp>files." ) ; return net . coobird . thumbnailator . Thumbnails . Builder . ofStrings ( files ) ; }
|
org . junit . Assert . assertEquals ( "Cannot<sp>specify<sp>an<sp>empty<sp>collection<sp>for<sp>input<sp>files." , e . getMessage ( ) )
|
testPriorityRegionIsOpenedWithSeparateThreadPool ( ) { final org . apache . hadoop . hbase . TableName tableName = org . apache . hadoop . hbase . TableName . valueOf ( org . apache . hadoop . hbase . regionserver . TestRegionOpen . class . getSimpleName ( ) ) ; java . util . concurrent . ThreadPoolExecutor exec = org . apache . hadoop . hbase . regionserver . TestRegionOpen . getRS ( ) . getExecutorService ( ) . getExecutorThreadPool ( ExecutorType . RS_OPEN_PRIORITY_REGION ) ; long completed = exec . getCompletedTaskCount ( ) ; org . apache . hadoop . hbase . HTableDescriptor htd = new org . apache . hadoop . hbase . HTableDescriptor ( tableName ) ; htd . setPriority ( HConstants . HIGH_QOS ) ; htd . addFamily ( new org . apache . hadoop . hbase . HColumnDescriptor ( org . apache . hadoop . hbase . HConstants . CATALOG_FAMILY ) ) ; try ( org . apache . hadoop . hbase . client . Connection connection = org . apache . hadoop . hbase . client . ConnectionFactory . createConnection ( org . apache . hadoop . hbase . regionserver . TestRegionOpen . HTU . getConfiguration ( ) ) ; org . apache . hadoop . hbase . client . Admin admin = connection . getAdmin ( ) ) { admin . createTable ( htd ) ; } "<AssertPlaceHolder>" ; } createTable ( byte [ ] ) { return org . apache . hadoop . hbase . mapreduce . TestTableInputFormat . createTable ( tableName , new byte [ ] [ ] { org . apache . hadoop . hbase . mapreduce . TestTableInputFormat . FAMILY } ) ; }
|
org . junit . Assert . assertEquals ( ( completed + 1 ) , exec . getCompletedTaskCount ( ) )
|
testItemInMutipleCollectionsError ( ) { org . unitedinternet . cosmo . model . User user = getUser ( userDao , "testuser" ) ; org . unitedinternet . cosmo . model . CollectionItem root = ( ( org . unitedinternet . cosmo . model . CollectionItem ) ( contentDao . getRootItem ( user ) ) ) ; org . unitedinternet . cosmo . model . CollectionItem a = new org . unitedinternet . cosmo . model . hibernate . HibCollectionItem ( ) ; a . setName ( "a" ) ; a . setOwner ( user ) ; a = contentDao . createCollection ( root , a ) ; org . unitedinternet . cosmo . model . ContentItem item = generateTestContent ( ) ; item . setName ( "test" ) ; org . unitedinternet . cosmo . model . ContentItem newItem = contentDao . createContent ( a , item ) ; clearSession ( ) ; org . unitedinternet . cosmo . model . ContentItem queryItem = ( ( org . unitedinternet . cosmo . model . ContentItem ) ( contentDao . findItemByUid ( newItem . getUid ( ) ) ) ) ; "<AssertPlaceHolder>" ; org . unitedinternet . cosmo . model . CollectionItem b = new org . unitedinternet . cosmo . model . hibernate . HibCollectionItem ( ) ; b . setName ( "b" ) ; b . setOwner ( user ) ; b = contentDao . createCollection ( root , b ) ; org . unitedinternet . cosmo . model . ContentItem item2 = generateTestContent ( ) ; item2 . setName ( "test" ) ; contentDao . createContent ( b , item2 ) ; try { contentDao . addItemToCollection ( queryItem , b ) ; org . junit . Assert . fail ( "able<sp>to<sp>add<sp>item<sp>with<sp>same<sp>name<sp>to<sp>collection" ) ; } catch ( org . unitedinternet . cosmo . dao . DuplicateItemNameException e ) { } } getParents ( ) { if ( ( parents ) != null ) { return parents ; } parents = new java . util . HashSet < org . unitedinternet . cosmo . model . CollectionItem > ( ) ; for ( org . unitedinternet . cosmo . model . CollectionItemDetails cid : parentDetails ) { parents . add ( cid . getCollection ( ) ) ; } parents = java . util . Collections . unmodifiableSet ( parents ) ; return parents ; }
|
org . junit . Assert . assertEquals ( queryItem . getParents ( ) . size ( ) , 1 )
|
deleteDtoLogicallyByIdShouldDeletedLogicallyWhenPositionEntityExists ( ) { org . mockito . ArgumentCaptor < com . epam . rft . atsy . persistence . entities . PositionEntity > positionEntityArgumentCaptor = org . mockito . ArgumentCaptor . forClass ( com . epam . rft . atsy . persistence . entities . PositionEntity . class ) ; given ( this . positionRepository . findOne ( com . epam . rft . atsy . service . impl . PositionServiceImplTest . DEVELOPER_ID ) ) . willReturn ( developerEntity ) ; this . positionService . deleteDtoLogicallyById ( com . epam . rft . atsy . service . impl . PositionServiceImplTest . DEVELOPER_ID ) ; verify ( positionRepository ) . saveAndFlush ( positionEntityArgumentCaptor . capture ( ) ) ; "<AssertPlaceHolder>" ; then ( positionRepository ) . should ( ) . findOne ( com . epam . rft . atsy . service . impl . PositionServiceImplTest . DEVELOPER_ID ) ; then ( positionRepository ) . should ( ) . saveAndFlush ( deletedDeveloperEntity ) ; } deleteDtoLogicallyById ( java . lang . Long ) { org . springframework . util . Assert . notNull ( id ) ; E entity = ( ( E ) ( this . logicallyDeletableRepository . findOne ( id ) ) ) ; if ( entity == null ) { throw new com . epam . rft . atsy . service . exception . ObjectNotFoundException ( ) ; } entity . setDeleted ( true ) ; this . logicallyDeletableRepository . saveAndFlush ( entity ) ; }
|
org . junit . Assert . assertThat ( deletedDeveloperEntity , org . hamcrest . CoreMatchers . equalTo ( positionEntityArgumentCaptor . getValue ( ) ) )
|
testSaveAndLoad ( ) { engine . debug_js = true ; double rand = ( ( double ) ( java . lang . Math . random ( ) ) ) ; engine . set ( "s" , "abcdef" ) ; java . io . File f = new java . io . File ( ( ( "123" 0 + rand ) + "123" 2 ) ) ; engine . save ( f , "s" ) ; engine . rm ( "s" ) ; engine . load ( f ) ; assert engine . asString ( engine . eval ( "s" ) ) . equals ( "abcdef" ) : "bad<sp>restore<sp>of<sp>s" ; engine . set ( "a" , "123" ) ; engine . set ( "b" , "456" ) ; rand = ( ( double ) ( java . lang . Math . random ( ) ) ) ; java . io . File f2 = new java . io . File ( ( ( "123" 0 + rand ) + "123" 2 ) ) ; engine . save ( f , "s" , "a" ) ; engine . rm ( "s" ) ; engine . rm ( "a" ) ; engine . rm ( "b" ) ; engine . load ( f ) ; assert engine . asString ( engine . eval ( "a" ) ) . equals ( "123" ) : "bad<sp>restore<sp>of<sp>s" ; assert engine . asString ( engine . eval ( "s" ) ) . equals ( "abcdef" ) : "bad<sp>restore<sp>of<sp>s" ; try { java . lang . Object b = engine . eval ( "b" ) ; assert false : b + "" ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; "<AssertPlaceHolder>" ; } engine . set ( "s" , "abcdef" ) ; engine . set ( "a" , "123" ) ; engine . set ( "b" , "456" ) ; engine . savels ( f , "" ) ; engine . rm ( "s" ) ; engine . rm ( "a" ) ; engine . rm ( "b" ) ; engine . load ( f ) ; assert java . util . Arrays . equals ( engine . ls ( ) , new java . lang . String [ ] { "a" , "b" , "s" } ) : java . util . Arrays . toString ( engine . ls ( ) ) ; assert engine . rmAll ( ) ; assert java . util . Arrays . equals ( engine . ls ( ) , new java . lang . String [ ] { } ) : java . util . Arrays . toString ( engine . ls ( ) ) ; engine . eval ( "fun<sp>=<sp>function(x)<sp>{return(x)}" ) ; engine . set ( "a" , "123" ) ; engine . set ( "b" , "456" ) ; System . err . println ( java . util . Arrays . toString ( engine . ls ( ) ) ) ; assert java . util . Arrays . equals ( engine . ls ( ) , new java . lang . String [ ] { "a" , "b" , "fun" } ) : java . util . Arrays . toString ( engine . ls ( ) ) ; engine . savels ( f , "" ) ; engine . rm ( "fun" ) ; engine . rm ( "a" ) ; engine . rm ( "b" ) ; assert java . util . Arrays . equals ( engine . ls ( ) , new java . lang . String [ ] { } ) : java . util . Arrays . toString ( engine . ls ( ) ) ; engine . load ( f ) ; assert java . util . Arrays . equals ( engine . ls ( ) , new java . lang . String [ ] { "a" , "b" , "fun" } ) : java . util . Arrays . toString ( engine . ls ( ) ) ; assert ( ( double ) ( engine . eval ( "123" 1 ) ) ) == 0.123 : engine . eval ( "123" 1 ) ; } asString ( java . lang . Object ) { if ( o == null ) { return null ; } if ( o instanceof java . lang . String ) { return ( ( java . lang . String ) ( o ) ) ; } if ( ! ( o instanceof org . renjin . sexp . SEXP ) ) { throw new java . lang . IllegalArgumentException ( ( "[asString]<sp>Not<sp>an<sp>SEXP<sp>object:<sp>" + o ) ) ; } try { return ( ( org . renjin . sexp . SEXP ) ( o ) ) . asString ( ) ; } catch ( java . lang . Exception ex ) { throw new java . lang . ClassCastException ( ( "[asString]<sp>Cannot<sp>cast<sp>to<sp>String<sp>" + o ) ) ; } }
|
org . junit . Assert . assertTrue ( true )
|
canAddReturnsFalseForAnOccupiedCell ( ) { com . metservice . kanban . model . WorkItemType type = new com . metservice . kanban . model . WorkItemType ( "phase" ) ; com . metservice . kanban . model . WorkItem feature1 = new com . metservice . kanban . model . WorkItem ( 1 , type , "phase" ) ; com . metservice . kanban . model . WorkItem feature2 = new com . metservice . kanban . model . WorkItem ( 2 , type , "phase" ) ; com . metservice . kanban . model . KanbanBoardColumnList columns = new com . metservice . kanban . model . KanbanBoardColumnList ( new com . metservice . kanban . model . KanbanBoardColumn ( type , "phase" ) ) ; com . metservice . kanban . model . KanbanBoardRow row = new com . metservice . kanban . model . KanbanBoardRow ( columns ) ; row . insert ( feature1 , null , null , null ) ; "<AssertPlaceHolder>" ; } canAdd ( com . metservice . kanban . model . WorkItem ) { java . lang . String phase = workItem . getCurrentPhase ( ) ; int index = columns . getIndexOfPhase ( phase ) ; return cells [ index ] . isEmptyCell ( ) ; }
|
org . junit . Assert . assertThat ( row . canAdd ( feature2 ) , org . hamcrest . core . Is . is ( false ) )
|
testUploadBufferSizeDefault ( ) { org . apache . beam . sdk . extensions . gcp . options . GcsOptions pipelineOptions = org . apache . beam . sdk . extensions . gcp . util . GcsUtilTest . gcsOptionsWithTestCredential ( ) ; org . apache . beam . sdk . extensions . gcp . util . GcsUtil util = pipelineOptions . getGcsUtil ( ) ; "<AssertPlaceHolder>" ; } getUploadBufferSizeBytes ( ) { return uploadBufferSizeBytes ; }
|
org . junit . Assert . assertNull ( util . getUploadBufferSizeBytes ( ) )
|
shouldUseAndDiscardFlashParameters ( ) { java . lang . Object [ ] values = new java . lang . Object [ ] { "bazinga" } ; methodInfo . setControllerMethod ( otherMethod ) ; when ( flash . consumeParameters ( otherMethod ) ) . thenReturn ( values ) ; instantiator . instantiate ( new br . com . caelum . vraptor . events . InterceptorsReady ( otherMethod ) ) ; verify ( validator ) . addAll ( java . util . Collections . < br . com . caelum . vraptor . validator . Message > emptyList ( ) ) ; verify ( parametersProvider , never ( ) ) . getParametersFor ( otherMethod , errors ) ; "<AssertPlaceHolder>" ; } getValuedParameters ( ) { createValuedParameter ( controllerMethod ) ; return valuedParameters ; }
|
org . junit . Assert . assertEquals ( "bazinga" , methodInfo . getValuedParameters ( ) [ 0 ] . getValue ( ) )
|
testJoinClauseAsNull ( ) { setUp ( null ) ; com . sap . core . odata . processor . core . jpa . jpql . JPQLJoinStatementBuilder jpqlJoinStatementBuilder = new com . sap . core . odata . processor . core . jpa . jpql . JPQLJoinStatementBuilder ( context ) ; try { jpqlJoinStatementBuilder . build ( ) ; org . junit . Assert . fail ( "Should<sp>not<sp>have<sp>come<sp>here" ) ; } catch ( com . sap . core . odata . processor . api . jpa . exception . ODataJPARuntimeException e ) { "<AssertPlaceHolder>" ; } } build ( ) { return properties ; }
|
org . junit . Assert . assertTrue ( true )
|
storageStorageDoubleClose ( ) { ru . mipt . java2016 . homework . base . task2 . KeyValueStorage < java . lang . String , java . lang . String > storage = new ru . mipt . java2016 . homework . g594 . kozlov . task3 . FastStorage ( new ru . mipt . java2016 . homework . g594 . kozlov . task2 . serializer . StringSerializer ( ) , new ru . mipt . java2016 . homework . g594 . kozlov . task2 . serializer . StringSerializer ( ) , "" ) ; storage . write ( "no<sp>pain" , "no<sp>gain" ) ; try { storage . close ( ) ; storage . close ( ) ; storage . close ( ) ; storage . close ( ) ; } catch ( java . io . IOException e ) { System . out . println ( "smth<sp>went<sp>wrong" ) ; } storage = new ru . mipt . java2016 . homework . g594 . kozlov . task3 . FastStorage ( new ru . mipt . java2016 . homework . g594 . kozlov . task2 . serializer . StringSerializer ( ) , new ru . mipt . java2016 . homework . g594 . kozlov . task2 . serializer . StringSerializer ( ) , "" ) ; "<AssertPlaceHolder>" ; try { storage . close ( ) ; } catch ( java . io . IOException e ) { System . out . println ( "smth<sp>went<sp>wrong" ) ; } } read ( K ) { checkExistence ( ) ; return map . get ( key ) ; }
|
org . junit . Assert . assertEquals ( "no<sp>gain" , storage . read ( "no<sp>pain" ) )
|
testAbortDeleteFromDiskComponent ( ) { org . apache . hyracks . dataflow . common . data . accessors . ITupleReference lastTuple = insertRecords ( org . apache . asterix . test . dataflow . TransactionAbortTest . NUM_INSERT_RECORDS ) ; org . apache . asterix . test . dataflow . StorageTestUtils . flush ( org . apache . asterix . test . dataflow . TransactionAbortTest . dsLifecycleMgr , org . apache . asterix . test . dataflow . TransactionAbortTest . lsmBtree , false ) ; "<AssertPlaceHolder>" ; org . apache . asterix . test . dataflow . StorageTestUtils . searchAndAssertCount ( org . apache . asterix . test . dataflow . TransactionAbortTest . nc , org . apache . asterix . test . dataflow . TransactionAbortTest . PARTITION , org . apache . asterix . test . dataflow . TransactionAbortTest . NUM_INSERT_RECORDS ) ; org . apache . asterix . test . dataflow . TransactionAbortTest . abortOp = org . apache . asterix . test . dataflow . StorageTestUtils . getInsertPipeline ( org . apache . asterix . test . dataflow . TransactionAbortTest . nc , org . apache . asterix . test . dataflow . TransactionAbortTest . abortCtx , null , IndexOperation . DELETE ) ; testAbort ( lastTuple ) ; org . apache . asterix . test . dataflow . StorageTestUtils . searchAndAssertCount ( org . apache . asterix . test . dataflow . TransactionAbortTest . nc , org . apache . asterix . test . dataflow . TransactionAbortTest . PARTITION , org . apache . asterix . test . dataflow . TransactionAbortTest . NUM_INSERT_RECORDS ) ; } getDiskComponents ( ) { if ( ( version ) == 0 ) { return diskComponents ; } else if ( ( version ) == 1 ) { return secondDiskComponents ; } else { return java . util . Collections . emptyList ( ) ; } }
|
org . junit . Assert . assertEquals ( 1 , org . apache . asterix . test . dataflow . TransactionAbortTest . lsmBtree . getDiskComponents ( ) . size ( ) )
|
clearCartTest ( ) { System . out . print ( "-><sp>clearCart()<sp>-<sp>" ) ; java . lang . String view = ua . com . alexcoffee . controller . client . HomeControllerTest . homeController . clearCart ( ) ; java . lang . String viewName = "redirect:/cart" ; "<AssertPlaceHolder>" ; System . out . println ( "OK!" ) ; } clearCart ( ) { this . shoppingCartService . clear ( ) ; return "redirect:/cart" ; }
|
org . junit . Assert . assertEquals ( view , viewName )
|
testNegative ( ) { condition . setFile ( ( ( org . oscm . build . ant . XPathConditionTest . TESTDIR ) + "/test.xml" ) ) ; condition . setPath ( "/antbob" ) ; "<AssertPlaceHolder>" ; } eval ( ) { if ( nullOrEmpty ( fileName ) ) { throw new org . apache . tools . ant . BuildException ( "No<sp>file<sp>set" ) ; } java . io . File file = new java . io . File ( fileName ) ; if ( ( ! ( file . exists ( ) ) ) || ( file . isDirectory ( ) ) ) { throw new org . apache . tools . ant . BuildException ( "The<sp>specified<sp>file<sp>does<sp>not<sp>exist<sp>or<sp>is<sp>a<sp>directory" ) ; } if ( nullOrEmpty ( path ) ) { throw new org . apache . tools . ant . BuildException ( "No<sp>XPath<sp>expression<sp>set" ) ; } javax . xml . xpath . XPath xpath = javax . xml . xpath . XPathFactory . newInstance ( ) . newXPath ( ) ; org . xml . sax . InputSource inputSource = new org . xml . sax . InputSource ( fileName ) ; java . lang . Boolean result = Boolean . FALSE ; try { result = ( ( java . lang . Boolean ) ( xpath . evaluate ( path , inputSource , XPathConstants . BOOLEAN ) ) ) ; } catch ( javax . xml . xpath . XPathExpressionException e ) { throw new org . apache . tools . ant . BuildException ( "XPath<sp>expression<sp>fails" , e ) ; } return result . booleanValue ( ) ; }
|
org . junit . Assert . assertFalse ( condition . eval ( ) )
|
test_get_id_after_serialization ( ) { nl . surfnet . coin . api . client . domain . Person person = new nl . surfnet . coin . api . client . domain . Person ( ) ; person . setId ( "id" ) ; new java . io . ObjectOutputStream ( new java . io . FileOutputStream ( "target/person.ser" ) ) . writeObject ( person ) ; nl . surfnet . coin . api . client . domain . Person persistentPerson = ( ( nl . surfnet . coin . api . client . domain . Person ) ( new java . io . ObjectInputStream ( new java . io . FileInputStream ( "target/person.ser" ) ) . readObject ( ) ) ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
|
org . junit . Assert . assertEquals ( "id" , persistentPerson . getId ( ) )
|
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . document . library . content . model . DLContent > dlContents = _persistence . fetchByPrimaryKeys ( primaryKeys ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return _portalCacheListeners . isEmpty ( ) ; }
|
org . junit . Assert . assertTrue ( dlContents . isEmpty ( ) )
|
testAddWhenOtherHasMoreResourcesThanThis ( ) { org . apache . storm . scheduler . resource . normalization . NormalizedResources resources = new org . apache . storm . scheduler . resource . normalization . NormalizedResources ( normalize ( java . util . Collections . emptyMap ( ) ) ) ; org . apache . storm . scheduler . resource . normalization . NormalizedResources addedResources = new org . apache . storm . scheduler . resource . normalization . NormalizedResources ( normalize ( java . util . Collections . singletonMap ( gpuResourceName , 1 ) ) ) ; resources . add ( addedResources ) ; java . util . Map < java . lang . String , java . lang . Double > normalizedMap = resources . toNormalizedMap ( ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { return map . get ( name ) ; }
|
org . junit . Assert . assertThat ( normalizedMap . get ( gpuResourceName ) , org . hamcrest . CoreMatchers . is ( 1.0 ) )
|
testGetParsedTagsWithInput ( ) { java . lang . String testFileName = "<MsParam_PI><label>*Condition</label>\n" 5 ; java . lang . StringBuilder ruleBuilder = new java . lang . StringBuilder ( ) ; ruleBuilder . append ( "myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n" ) ; ruleBuilder . append ( "*Action=chksumRescLoc%*Condition=COLL_NAME<sp>=<sp>'" ) ; ruleBuilder . append ( testFileName ) ; ruleBuilder . append ( "\'%*Operation=ChksumAll\n" ) ; ruleBuilder . append ( "<MsParam_PI><label>*Condition</label>\n" 1 ) ; org . irods . jargon . core . rule . RuleInvocationConfiguration ruleInvocationConfiguration = org . irods . jargon . core . rule . RuleInvocationConfiguration . instanceWithDefaultAutoSettings ( ) ; java . lang . String ruleString = ruleBuilder . toString ( ) ; org . irods . jargon . core . rule . AbstractRuleTranslator irodsRuleTranslator = new org . irods . jargon . core . rule . IrodsRuleEngineRuleTranslator ( org . irods . jargon . core . packinstr . ExecMyRuleInp_PITest . irodsServerProperties , ruleInvocationConfiguration , new org . irods . jargon . core . connection . SettableJargonProperties ( ) ) ; org . irods . jargon . core . rule . IRODSRule irodsRule = irodsRuleTranslator . translatePlainTextRuleIntoIRODSRule ( ruleString ) ; org . irods . jargon . core . packinstr . ExecMyRuleInp rulePI = org . irods . jargon . core . packinstr . ExecMyRuleInp . instance ( irodsRule ) ; java . lang . String outputXML = rulePI . getParsedTags ( ) ; java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; sb . append ( "<ExecMyRuleInp_PI><myRule>myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n</myRule>\n" ) ; sb . append ( "myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n" 1 ) ; sb . append ( "myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n" 9 ) ; sb . append ( "<port>0</port>\n" ) ; sb . append ( "<dummyInt>0</dummyInt>\n" ) ; sb . append ( "myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n" 4 ) ; sb . append ( "myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n" 0 ) ; sb . append ( "<MsParam_PI><label>*Condition</label>\n" 0 ) ; sb . append ( "myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n" 5 ) ; sb . append ( "myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n" 2 ) ; sb . append ( "<MsParam_PI><label>*Condition</label>\n" 7 ) ; sb . append ( "<MsParam_PI><label>*Condition</label>\n" 4 ) ; sb . append ( "<type>STR_PI</type>\n" ) ; sb . append ( "<MsParam_PI><label>*Condition</label>\n" 2 ) ; sb . append ( "</STR_PI>\n" ) ; sb . append ( "myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n" 8 ) ; sb . append ( "<MsParam_PI><label>*Condition</label>\n" ) ; sb . append ( "<type>STR_PI</type>\n" ) ; sb . append ( "myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n" 6 ) ; sb . append ( "</STR_PI>\n" ) ; sb . append ( "myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n" 8 ) ; sb . append ( "<MsParam_PI><label>*Operation</label>\n" ) ; sb . append ( "<type>STR_PI</type>\n" ) ; sb . append ( "myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n" 7 ) ; sb . append ( "</STR_PI>\n" ) ; sb . append ( "myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n" 8 ) ; sb . append ( "myTestRule||acGetIcatResults(*Action,*Condition,*B)##forEachExec(*B,msiGetValByKey(*B,RESC_LOC,*R)##remoteExec(*R,null,msiDataObjChksum(*B,*Operation,*C),nop)##msiGetValByKey(*B,DATA_NAME,*D)##msiGetValByKey(*B,COLL_NAME,*E)##writeLine(stdout,CheckSum<sp>of<sp>*E/*D<sp>at<sp>*R<sp>is<sp>*C),nop)|nop##nop\n" 3 ) ; sb . append ( "<MsParam_PI><label>*Condition</label>\n" 3 ) ; java . lang . String expectedXML = sb . toString ( ) ; "<AssertPlaceHolder>" ; } toString ( ) { final int maxLen = 10 ; java . lang . StringBuilder builder = new java . lang . StringBuilder ( ) ; builder . append ( "DataProfile<sp>[file=" ) . append ( file ) . append ( ",<sp>domainObject=" ) . append ( domainObject ) . append ( ",<sp>irodsTagValues=" 1 ) . append ( ( ( metadata ) != null ? metadata . subList ( 0 , java . lang . Math . min ( metadata . size ( ) , maxLen ) ) : null ) ) . append ( ",<sp>acls=" ) . append ( ( ( acls ) != null ? acls . subList ( 0 , java . lang . Math . min ( acls . size ( ) , maxLen ) ) : null ) ) . append ( ",<sp>isStarred=" ) . append ( isStarred ) . append ( ",<sp>isShared=" ) . append ( isShared ) . append ( ",<sp>mimeType=" ) . append ( mimeType ) . append ( ",<sp>irodsTagValues=" 0 ) . append ( infoType ) . append ( ",<sp>irodsTagValues=" ) . append ( ( ( irodsTagValues ) != null ? irodsTagValues . subList ( 0 , java . lang . Math . min ( irodsTagValues . size ( ) , maxLen ) ) : null ) ) . append ( ",<sp>parentPath=" ) . append ( parentPath ) . append ( ",<sp>irodsTagValues=" 2 ) . append ( childName ) . append ( ",<sp>pathComponents=" ) . append ( ( ( pathComponents ) != null ? pathComponents . subList ( 0 , java . lang . Math . min ( pathComponents . size ( ) , maxLen ) ) : null ) ) . append ( "]" ) ; return builder . toString ( ) ; }
|
org . junit . Assert . assertEquals ( "<MsParam_PI><label>*Condition</label>\n" 6 , expectedXML , outputXML )
|
testCompareToWithEarlierStartRange ( ) { au . gov . ga . earthsci . core . temporal . timescale . BasicTimePeriod period1 = au . gov . ga . earthsci . core . temporal . timescale . BasicTimePeriod . Builder . buildTimePeriod ( "id1" , "name1" , "description" ) . from ( new au . gov . ga . earthsci . core . temporal . BigTime ( java . math . BigInteger . valueOf ( 999 ) ) , true ) . to ( new au . gov . ga . earthsci . core . temporal . BigTime ( java . math . BigInteger . valueOf ( 10000 ) ) , true ) . atLevel ( au . gov . ga . earthsci . core . temporal . timescale . BasicTimePeriodTest . level2 ) . build ( ) ; au . gov . ga . earthsci . core . temporal . timescale . BasicTimePeriod period2 = au . gov . ga . earthsci . core . temporal . timescale . BasicTimePeriod . Builder . buildTimePeriod ( "id2" , "name2" , "description" ) . from ( new au . gov . ga . earthsci . core . temporal . BigTime ( java . math . BigInteger . valueOf ( 1000 ) ) , true ) . to ( new au . gov . ga . earthsci . core . temporal . BigTime ( java . math . BigInteger . valueOf ( 10000 ) ) , true ) . atLevel ( au . gov . ga . earthsci . core . temporal . timescale . BasicTimePeriodTest . level1 ) . withSubPeriod ( period1 ) . build ( ) ; "<AssertPlaceHolder>" ; } compareTo ( au . gov . ga . earthsci . common . ui . color . ColorMapEditor$Marker ) { return ( o . zIndex ) - ( zIndex ) ; }
|
org . junit . Assert . assertTrue ( ( ( period1 . compareTo ( period2 ) ) < 0 ) )
|
ensureOnlyOne ( ) { datawave . query . iterator . SourceManager manager = new datawave . query . iterator . SourceManager ( counter ) ; manager . setInitialSize ( 1 ) ; for ( int i = 0 ; i < 250 ; i ++ ) { manager . deepCopy ( null ) ; } "<AssertPlaceHolder>" ; } deepCopy ( org . apache . accumulo . core . iterators . IteratorEnvironment ) { return new datawave . security . iterator . ConfigurableVisibilityFilter ( this , env ) ; }
|
org . junit . Assert . assertEquals ( 1 , counter . counter )
|
testGetStaticLabel ( ) { System . out . println ( "getStaticLabel" ) ; kg . apc . jmeter . vizualizers . ThroughputVsThreadsGui instance = new kg . apc . jmeter . vizualizers . ThroughputVsThreadsGui ( ) ; java . lang . String result = instance . getStaticLabel ( ) ; "<AssertPlaceHolder>" ; } getStaticLabel ( ) { return kg . apc . jmeter . JMeterPluginsUtils . prefixLabel ( "Response<sp>Codes<sp>per<sp>Second" ) ; }
|
org . junit . Assert . assertTrue ( ( ( result . length ( ) ) > 0 ) )
|
testDeleteReuse ( ) { store . delete ( 2 ) ; store . store ( doc [ 3 ] ) ; "<AssertPlaceHolder>" ; } retrieve ( int ) { java . lang . String [ ] rv = retrieveParts ( id , new int [ ] { - 1 } , new int [ ] { - 1 } ) ; return rv == null ? null : rv [ 0 ] ; }
|
org . junit . Assert . assertEquals ( doc [ 3 ] , store . retrieve ( 5 ) )
|
getUserDisplayName ( ) { java . lang . String user = "admin" ; java . lang . String displayName = "admin" ; com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . adapter . file . fat . BasicTests . c , "getUserDisplayName" , "Checking<sp>with<sp>a<sp>valid<sp>user." ) ; "<AssertPlaceHolder>" ; } getUserDisplayName ( java . lang . String ) { return userRegistry . getUserDisplayName ( securityName ) ; }
|
org . junit . Assert . assertEquals ( displayName , com . ibm . ws . security . wim . adapter . file . fat . BasicTests . servlet . getUserDisplayName ( user ) )
|
testAddTriggers ( ) { triggers = io . datakernel . trigger . Triggers . create ( ) ; triggers . addTrigger ( Severity . HIGH , "Component" , "Name" , TriggerResult :: none ) ; java . util . List < java . lang . String > triggers = this . triggers . getTriggers ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return size ; }
|
org . junit . Assert . assertEquals ( 1 , triggers . size ( ) )
|
testGetStaticLabel ( ) { System . out . println ( "getStaticLabel" ) ; kg . apc . jmeter . modifiers . FifoPutPostProcessorGui instance = new kg . apc . jmeter . modifiers . FifoPutPostProcessorGui ( ) ; java . lang . String result = instance . getStaticLabel ( ) ; "<AssertPlaceHolder>" ; } getStaticLabel ( ) { return kg . apc . jmeter . JMeterPluginsUtils . prefixLabel ( "Response<sp>Codes<sp>per<sp>Second" ) ; }
|
org . junit . Assert . assertNotNull ( result )
|
testGetStringNull ( ) { "<AssertPlaceHolder>" ; } get ( int ) { try { return params . getParameter ( ( index + 1 ) ) ; } catch ( final org . kohsuke . args4j . CmdLineException e ) { throw new java . lang . IndexOutOfBoundsException ( ) ; } }
|
org . junit . Assert . assertNull ( pool . get ( ( ( java . lang . String ) ( null ) ) ) )
|
whenQueueIsFullTasksGetDropped ( ) { writer = new com . graphaware . writer . neo4j . BatchWriter ( getDatabase ( ) , 2 , 100 ) ; writer . start ( ) ; java . lang . Runnable task = ( ) -> getDatabase ( ) . createNode ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { writer . write ( task ) ; } waitABit ( ) ; try ( org . neo4j . graphdb . Transaction tx = getDatabase ( ) . beginTx ( ) ) { "<AssertPlaceHolder>" ; tx . success ( ) ; } } countNodes ( org . neo4j . graphdb . GraphDatabaseService ) { return com . graphaware . common . util . IterableUtils . count ( database . getAllNodes ( ) ) ; }
|
org . junit . Assert . assertTrue ( ( 10 > ( com . graphaware . common . util . IterableUtils . countNodes ( getDatabase ( ) ) ) ) )
|
whenProblemStateIsSet_itMustBeSetCorrectly ( ) { com . graphhopper . jsprit . core . algorithm . state . StateManager stateManager = new com . graphhopper . jsprit . core . algorithm . state . StateManager ( vrpMock ) ; com . graphhopper . jsprit . core . algorithm . state . StateId id = stateManager . createStateId ( "problemState" ) ; stateManager . putProblemState ( id , com . graphhopper . jsprit . core . algorithm . state . Boolean . class , true ) ; boolean problemState = stateManager . getProblemState ( id , com . graphhopper . jsprit . core . algorithm . state . Boolean . class ) ; "<AssertPlaceHolder>" ; } getProblemState ( com . graphhopper . jsprit . core . algorithm . state . StateId , java . lang . Class ) { return type . cast ( problemStates [ stateId . getIndex ( ) ] ) ; }
|
org . junit . Assert . assertTrue ( problemState )
|
delete ( ) { net . jforum . repository . CategoryRepository dao = this . newDao ( ) ; net . jforum . entities . Category c = this . newCategory ( "c3" , false ) ; this . insert ( c , dao ) ; c = dao . get ( c . getId ( ) ) ; this . delete ( c , dao ) ; c = dao . get ( c . getId ( ) ) ; "<AssertPlaceHolder>" ; } getId ( ) { return this . id ; }
|
org . junit . Assert . assertNull ( c )
|
shouldRaiseConstraintsViolationCauseTooShort ( ) { org . agoncal . book . javaee7 . chapter03 . ex05 . Customer05 customer = new org . agoncal . book . javaee7 . chapter03 . ex05 . Customer05 ( "John" , "Smith" , "a@b.c" , "recovery@gmail.com" , "1234565" , new java . util . Date ( ) , new java . util . Date ( ) ) ; java . util . Set < javax . validation . ConstraintViolation < org . agoncal . book . javaee7 . chapter03 . ex05 . Customer05 > > violations = org . agoncal . book . javaee7 . chapter03 . ex05 . Customer05Test . validator . validate ( customer ) ; displayContraintViolations ( violations ) ; "<AssertPlaceHolder>" ; } displayContraintViolations ( java . util . Set ) { for ( org . agoncal . book . javaee7 . chapter03 . ex12 . ConstraintViolation constraintViolation : constraintViolations ) { System . out . println ( ( ( ( ( ( ( ( "###<sp>" + ( constraintViolation . getRootBeanClass ( ) . getSimpleName ( ) ) ) + "." ) + ( constraintViolation . getPropertyPath ( ) ) ) + "<sp>-<sp>Invalid<sp>Value<sp>=<sp>" ) + ( constraintViolation . getInvalidValue ( ) ) ) + "<sp>-<sp>Error<sp>Msg<sp>=<sp>" ) + ( constraintViolation . getMessage ( ) ) ) ) ; } }
|
org . junit . Assert . assertEquals ( 1 , violations . size ( ) )
|
testBuildWithParameters ( ) { org . lnu . is . domain . person . Person person = new org . lnu . is . domain . person . Person ( ) ; org . lnu . is . domain . job . type . JobType jobType = new org . lnu . is . domain . job . type . JobType ( ) ; org . lnu . is . domain . specstagetype . SpecStageType specStageType = new org . lnu . is . domain . specstagetype . SpecStageType ( ) ; java . lang . String organizationName = "organization<sp>name" ; java . lang . String postName = "post<sp>name" ; java . lang . String description = "post<sp>name" ; java . util . Date begDate = new java . util . Date ( ) ; java . util . Date endDate = new java . util . Date ( ) ; org . lnu . is . domain . person . work . PersonWork context = new org . lnu . is . domain . person . work . PersonWork ( ) ; context . setPerson ( person ) ; context . setJobType ( jobType ) ; context . setSpecStageType ( specStageType ) ; context . setOrganizationName ( organizationName ) ; context . setPostName ( postName ) ; context . setDescription ( description ) ; context . setBegDate ( begDate ) ; context . setEndDate ( endDate ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>PersonWork<sp>e<sp>WHERE<sp>(<sp>e.person<sp>=<sp>:person<sp>AND<sp>e.jobType<sp>=<sp>:jobType<sp>AND<sp>e.specStageType<sp>=<sp>:specStageType<sp>AND<sp>e.organizationName<sp>LIKE<sp>CONCAT('%',:organizationName,'%')<sp>AND<sp>e.postName<sp>LIKE<sp>CONCAT('%',:postName,'%')<sp>AND<sp>e.description<sp>LIKE<sp>CONCAT('%',:description,'%')<sp>AND<sp>e.begDate<sp><=<sp>:begDate<sp>AND<sp>e.endDate<sp>>=<sp>:endDate)<sp>AND<sp>e.status=:status<sp>AND<sp>e.crtUserGroup<sp>IN<sp>(:userGroups)<sp>" ; org . lnu . is . pagination . MultiplePagedSearch < org . lnu . is . domain . person . work . PersonWork > pagedSearch = new org . lnu . is . pagination . MultiplePagedSearch ( ) ; pagedSearch . setEntity ( context ) ; java . lang . String actualQuery = unit . build ( pagedSearch ) ; "<AssertPlaceHolder>" ; } setEntity ( T ) { this . entity = entity ; }
|
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
|
plControleVersienummerGelijkNok ( ) { final nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst dbPersoonslijst = new nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijstBuilder ( ) . build ( ) ; setup ( java . util . Collections . singletonList ( dbPersoonslijst ) , true , true , true , false , true , true ) ; "<AssertPlaceHolder>" ; } setup ( java . util . List , boolean , boolean , boolean , boolean , boolean , boolean ) { org . mockito . Mockito . when ( plZoekerOpAnummerEnNietFoutiefOpgeschortObvActueelAnummer . zoek ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) ) ) . thenReturn ( plZoekerOpAnummerEnNietFoutiefOpgeschortObvActueelAnummerResult ) ; org . mockito . Mockito . when ( verzoekControleBerichtVanSoortLg01 . controleer ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . bericht . model . sync . impl . SynchroniseerNaarBrpVerzoekBericht . class ) ) ) . thenReturn ( berichtVerzoekControleBerichtVanSoortLg01 ) ; org . mockito . Mockito . when ( plControleGevondenBlokkeringssituatieIsJuist . controleer ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) , org . mockito . Matchers . any ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( resultControleBijhoudingssituatie ) ; org . mockito . Mockito . when ( lijstControleEen . controleer ( org . mockito . Matchers . anyListOf ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( lijstControleEenResult ) ; org . mockito . Mockito . when ( plControleVersienummerGelijk . controleer ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) , org . mockito . Matchers . any ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( plControleVersienummerGelijkResult ) ; org . mockito . Mockito . when ( plControleDatumtijdstempelGelijk . controleer ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) , org . mockito . Matchers . any ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( plControleDatumtijdstempelGelijkResult ) ; org . mockito . Mockito . when ( plControleVolledigGelijk . controleer ( org . mockito . Matchers . any ( nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext . class ) , org . mockito . Matchers . any ( nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst . class ) ) ) . thenReturn ( plControleVolledigGelijkResult ) ; }
|
org . junit . Assert . assertFalse ( subject . controleer ( new nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext ( null , null , null , null ) ) )
|
testSerialization ( ) { org . jfree . chart . renderer . DefaultPolarItemRenderer r1 = new org . jfree . chart . renderer . DefaultPolarItemRenderer ( ) ; org . jfree . chart . renderer . DefaultPolarItemRenderer r2 = ( ( org . jfree . chart . renderer . DefaultPolarItemRenderer ) ( org . jfree . chart . TestUtils . serialised ( r1 ) ) ) ; "<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 ( r1 , r2 )
|
testOrOnEmptyOptional ( ) { int value = com . annimon . stream . OptionalInt . empty ( ) . or ( new com . annimon . stream . function . Supplier < com . annimon . stream . OptionalInt > ( ) { @ com . annimon . stream . Override public com . annimon . stream . OptionalInt get ( ) { return com . annimon . stream . OptionalInt . of ( 19 ) ; } } ) . getAsInt ( ) ; "<AssertPlaceHolder>" ; } getAsInt ( ) { int v = value ; value *= 2 ; return v ; }
|
org . junit . Assert . assertEquals ( 19 , value )
|
testVerifyPolicy1 ( ) { com . liferay . portal . security . membershippolicy . SiteMembershipPolicyFactoryImplTest . _atomicState . reset ( ) ; com . liferay . portal . kernel . security . membershippolicy . SiteMembershipPolicyUtil . verifyPolicy ( ) ; "<AssertPlaceHolder>" ; } isSet ( ) { if ( Boolean . TRUE . equals ( _atomicBoolean . get ( ) ) ) { return true ; } return false ; }
|
org . junit . Assert . assertTrue ( com . liferay . portal . security . membershippolicy . SiteMembershipPolicyFactoryImplTest . _atomicState . isSet ( ) )
|
testGetAllJarsWithFunctionHolders ( ) { java . util . Map < java . lang . String , java . util . List < org . apache . drill . exec . expr . fn . registry . FunctionHolder > > fnHoldersInRegistry = registryHolder . getAllJarsWithFunctionHolders ( ) ; for ( java . lang . String jarName : org . apache . drill . exec . expr . fn . registry . FunctionRegistryHolderTest . newJars . keySet ( ) ) { java . util . List < org . apache . drill . exec . expr . fn . DrillFuncHolder > expectedHolderList = org . apache . drill . exec . expr . fn . registry . FunctionRegistryHolderTest . newJars . get ( jarName ) . stream ( ) . map ( FunctionHolder :: getHolder ) . collect ( java . util . stream . Collectors . toList ( ) ) ; java . util . List < org . apache . drill . exec . expr . fn . DrillFuncHolder > testHolderList = fnHoldersInRegistry . get ( jarName ) . stream ( ) . map ( FunctionHolder :: getHolder ) . collect ( java . util . stream . Collectors . toList ( ) ) ; compareTwoLists ( expectedHolderList , testHolderList ) ; } java . util . Map < java . lang . String , java . lang . String > shuffleFunctionMap = new java . util . HashMap ( ) ; for ( java . lang . String jarName : org . apache . drill . exec . expr . fn . registry . FunctionRegistryHolderTest . newJars . keySet ( ) ) { for ( org . apache . drill . exec . expr . fn . registry . FunctionHolder funcHolder : org . apache . drill . exec . expr . fn . registry . FunctionRegistryHolderTest . newJars . get ( jarName ) ) { if ( org . apache . drill . exec . expr . fn . registry . FunctionRegistryHolderTest . SHUFFLE_FUNC_NAME . equals ( funcHolder . getName ( ) ) ) { shuffleFunctionMap . put ( funcHolder . getSignature ( ) , jarName ) ; } } } for ( java . lang . String testJar : registryHolder . getAllJarNames ( ) ) { for ( org . apache . drill . exec . expr . fn . registry . FunctionHolder funcHolder : fnHoldersInRegistry . get ( testJar ) ) { if ( org . apache . drill . exec . expr . fn . registry . FunctionRegistryHolderTest . SHUFFLE_FUNC_NAME . equals ( funcHolder . getName ( ) ) ) { java . lang . String testSignature = funcHolder . getSignature ( ) ; java . lang . String expectedJar = shuffleFunctionMap . get ( testSignature ) ; if ( testJar . equals ( expectedJar ) ) { shuffleFunctionMap . remove ( testSignature ) ; } } } } "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( currentOffset ) == ( org . apache . drill . exec . vector . complex . impl . RepeatedListReaderImpl . NO_VALUES ) ; }
|
org . junit . Assert . assertTrue ( shuffleFunctionMap . isEmpty ( ) )
|
deveObterProtocoloComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . consulta . NFNotaConsultaRetorno consultaRetorno = new com . fincatto . documentofiscal . nfe310 . classes . nota . consulta . NFNotaConsultaRetorno ( ) ; final com . fincatto . documentofiscal . nfe310 . classes . NFProtocolo protocolo = com . fincatto . documentofiscal . nfe310 . FabricaDeObjetosFake . getNFProtocolo ( ) ; consultaRetorno . setProtocolo ( protocolo ) ; "<AssertPlaceHolder>" ; } getProtocolo ( ) { return this . protocolo ; }
|
org . junit . Assert . assertEquals ( protocolo , consultaRetorno . getProtocolo ( ) )
|
testNederlandseNationaliteitGeenVoornaam ( ) { final java . util . List < nl . bzk . brp . model . basis . BerichtEntiteit > overtreders = brby0153 . voerRegelUit ( bouwHuidigeSituatie ( null ) , bouwNieuweSituatie ( NationaliteitcodeAttribuut . NL_NATIONALITEIT_CODE ) , null , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; }
|
org . junit . Assert . assertEquals ( 1 , overtreders . size ( ) )
|
getAppearanceDenied ( ) { denieSpaceAuthorizationToUsers ( ) ; try { getAppearance ( ) ; org . junit . Assert . fail ( "An<sp>unauthorized<sp>user<sp>shouldn't<sp>access<sp>the<sp>space" ) ; } catch ( final com . sun . jersey . api . client . UniformInterfaceException ex ) { final int receivedStatus = ex . getResponse ( ) . getStatus ( ) ; final int forbidden = Status . FORBIDDEN . getStatusCode ( ) ; "<AssertPlaceHolder>" ; } } is ( T ) { return java . util . Objects . equals ( this . value , value ) ; }
|
org . junit . Assert . assertThat ( receivedStatus , org . hamcrest . Matchers . is ( forbidden ) )
|
testDoesNotReadTooMuch_singleBytes ( ) { for ( int i = 0 ; i < ( ( mBytes . length ) + ( mTail . length ) ) ; ++ i ) { mTailAppendingInputStream . read ( ) ; } "<AssertPlaceHolder>" ; } read ( ) { return com . facebook . common . internal . Files . toByteArray ( mFile ) ; }
|
org . junit . Assert . assertEquals ( ( - 1 ) , mTailAppendingInputStream . read ( ) )
|
getsAndSetsMimeType ( ) { com . mpatric . mp3agic . ID3v2PictureFrameData frameData = new com . mpatric . mp3agic . ID3v2PictureFrameData ( false ) ; frameData . setMimeType ( "Mime<sp>Type<sp>1" ) ; "<AssertPlaceHolder>" ; } getMimeType ( ) { return mimeType ; }
|
org . junit . Assert . assertEquals ( "Mime<sp>Type<sp>1" , frameData . getMimeType ( ) )
|
testTimestamp ( ) { loghub . Event ev = loghub . Tools . getEvent ( ) ; ev . setTimestamp ( new java . util . Date ( 0 ) ) ; java . util . Date ts = ( ( java . util . Date ) ( evalExpression ( "[<sp>@timestamp<sp>]" , ev ) ) ) ; "<AssertPlaceHolder>" ; } evalExpression ( java . lang . String , loghub . Event ) { return evalExpression ( exp , ev , new java . util . HashMap ( ) ) ; }
|
org . junit . Assert . assertEquals ( 0L , ts . getTime ( ) )
|
convertToIntegerNull ( ) { java . lang . Integer out = converter . toInteger ( null ) ; "<AssertPlaceHolder>" ; } toInteger ( java . lang . Long ) { if ( value == null ) { return null ; } if ( ( value > ( Integer . MAX_VALUE ) ) || ( value < ( Integer . MIN_VALUE ) ) ) { throw new io . atlasmap . api . AtlasConversionException ( java . lang . String . format ( "Long<sp>%s<sp>is<sp>greater<sp>than<sp>Integer.MAX_VALUE<sp>or<sp>less<sp>than<sp>Integer.MIN_VALUE" , value ) ) ; } return value . intValue ( ) ; }
|
org . junit . Assert . assertNull ( out )
|
testCreateProject ( ) { org . qualipso . factory . jabuti . test . JabutiServiceTest . logger . info ( "testCreateProject()" ) ; try { java . lang . String user = "SA" ; java . lang . String projectName = "Vending" ; java . io . File file = new java . io . File ( "src/test/resources/vending.jar" ) ; byte [ ] fileBytes = new byte [ ( ( int ) ( file . length ( ) ) ) ] ; new java . io . FileInputStream ( file ) . read ( fileBytes ) ; org . qualipso . factory . jabuti . test . JabutiServiceTest . projectId = port . createProject ( user , projectName , fileBytes ) ; org . qualipso . factory . jabuti . test . JabutiServiceTest . logger . info ( ( "projectId<sp>=<sp>" + ( org . qualipso . factory . jabuti . test . JabutiServiceTest . projectId ) ) ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( e . getMessage ( ) ) ; } } createProject ( java . lang . String , java . lang . String , byte [ ] ) { org . qualipso . factory . jabuti . JabutiServiceBean . logger . debug ( "createProject(...)<sp>called" ) ; init ( ) ; org . qualipso . factory . jabuti . MyDataHandler projectFileHandler = new org . qualipso . factory . jabuti . MyDataHandler ( new javax . mail . util . ByteArrayDataSource ( projectFile , "application/java-archive" ) ) ; java . io . File f = org . qualipso . factory . jabuti . ws . VerifingData . saveTempFile ( projectFileHandler ) ; org . qualipso . factory . jabuti . ws . FileValidation fv = new org . qualipso . factory . jabuti . ws . FileValidation ( ) ; if ( fv . validateFile ( f ) ) { try { org . qualipso . factory . jabuti . ws . WsProject control = new org . qualipso . factory . jabuti . ws . WsProject ( props ) ; java . lang . String [ ] ret = control . create ( projectName , f ) ; return ret [ 0 ] ; } catch ( java . lang . Exception e ) { org . qualipso . factory . jabuti . JabutiServiceBean . logger . error ( e ) ; e . printStackTrace ( ) ; throw new org . qualipso . factory . jabuti . JabutiServiceException ( e ) ; } } else { org . qualipso . factory . jabuti . InvalidFileFault e = new org . qualipso . factory . jabuti . InvalidFileFault ( fv . getMessage ( ) ) ; org . qualipso . factory . jabuti . JabutiServiceBean . logger . error ( e ) ; e . printStackTrace ( ) ; throw new org . qualipso . factory . jabuti . JabutiServiceException ( e ) ; } }
|
org . junit . Assert . assertNotNull ( org . qualipso . factory . jabuti . test . JabutiServiceTest . projectId )
|
testLastIndex ( ) { int where = ff . size ( ) ; java . lang . String d = "JKDJFLSJLKDJF" ; ff . add ( d ) ; ff . add ( new java . util . Date ( ) . toString ( ) ) ; "<AssertPlaceHolder>" ; } lastIndexOf ( java . lang . Object ) { for ( int i = ( hwm ) - 1 ; i >= 0 ; i -- ) { if ( o == ( data [ i ] ) ) { return i ; } } return - 1 ; }
|
org . junit . Assert . assertEquals ( where , ff . lastIndexOf ( d ) )
|
dumpStoppedOutputStreamEmptyTest ( ) { profiler . start ( ) ; org . threadly . test . concurrent . TestUtils . sleep ( org . threadly . util . debug . ControlledThreadProfilerTest . WAIT_TIME_FOR_COLLECTION ) ; profiler . stop ( ) ; java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; profiler . dump ( out ) ; java . lang . String resultStr = out . toString ( ) ; "<AssertPlaceHolder>" ; } length ( ) { return sb . length ( ) ; }
|
org . junit . Assert . assertEquals ( 0 , resultStr . length ( ) )
|
testByteOp ( ) { for ( int i = 0 ; i < 20 ; ++ i ) { for ( int j = 0 ; j < 8 ; ++ j ) { long expected = ( ~ 0L ) ^ ( 255L << ( j * 8 ) ) ; long [ ] state = getState ( ) ; com . github . aelstad . keccakj . core . KeccakStateUtils . byteOp ( StateOp . ZERO , state , ( ( 8 * i ) + j ) , ( ( byte ) ( 0 ) ) ) ; "<AssertPlaceHolder>" ; } } } byteOp ( com . github . aelstad . keccakj . core . KeccakStateUtils$StateOp , long [ ] , int , byte ) { int lpos = pos > > 3 ; int bitoff = ( pos & 7 ) << 3 ; return ( ( byte ) ( ( ( com . github . aelstad . keccakj . core . KeccakStateUtils . longOp ( stateOp , state , lpos , ( ( ( long ) ( val ) ) << bitoff ) , bitoff , 8 ) ) > > > bitoff ) & 255L ) ) ; }
|
org . junit . Assert . assertTrue ( ( ( state [ i ] ) == expected ) )
|
savesCarriageReturnInBodyCorrectly ( ) { com . eviware . soapui . impl . wsdl . WsdlProject project = com . eviware . soapui . utils . ModelItemFactory . makeWsdlProject ( ) ; com . eviware . soapui . impl . rest . RestService restService = ( ( com . eviware . soapui . impl . rest . RestService ) ( project . addNewInterface ( "RestService" , RestServiceFactory . REST_TYPE ) ) ) ; com . eviware . soapui . impl . rest . RestResource restResource = restService . addNewResource ( "Root" , "/resource" ) ; com . eviware . soapui . impl . rest . RestMethod restMethod = restResource . addNewMethod ( "POST" ) ; com . eviware . soapui . impl . rest . RestRequest restRequest = restMethod . addNewRequest ( "TestRequest" ) ; java . lang . String originalContent = "First<sp>line\r\nSecond<sp>\\rline" ; restRequest . setRequestContent ( originalContent ) ; java . io . File saveFile = java . io . File . createTempFile ( "soapui" , "xml" ) ; saveFile . deleteOnExit ( ) ; project . saveIn ( saveFile ) ; com . eviware . soapui . impl . wsdl . WsdlProject loadedProject = new com . eviware . soapui . impl . wsdl . WsdlProject ( saveFile . getAbsolutePath ( ) ) ; loadedProject . loadProject ( saveFile . toURL ( ) ) ; com . eviware . soapui . impl . rest . RestRequest loadedRequest = ( ( com . eviware . soapui . impl . rest . RestRequest ) ( loadedProject . getInterfaceAt ( 0 ) . getOperationAt ( 0 ) . getRequestAt ( 0 ) ) ) ; "<AssertPlaceHolder>" ; } getRequestContent ( ) { return request . getRequestContent ( ) ; }
|
org . junit . Assert . assertThat ( loadedRequest . getRequestContent ( ) , org . hamcrest . CoreMatchers . is ( originalContent ) )
|
testCrawlGithub ( ) { br . ufpe . cin . groundhog . crawler . CrawlGitHub crawl = new br . ufpe . cin . groundhog . crawler . CrawlGitHub ( gitClient , com . google . common . io . Files . createTempDir ( ) ) ; br . ufpe . cin . groundhog . Project p = new br . ufpe . cin . groundhog . Project ( "modules.playframework.org" , "description" , "https://github.com/spgroup/groundhog.git" ) ; java . util . List < java . util . concurrent . Future < java . io . File > > fs = crawl . asyncDownloadProjects ( com . google . common . collect . Lists . newArrayList ( p ) ) ; for ( java . util . concurrent . Future < java . io . File > f : fs ) { java . io . File file = f . get ( ) ; "<AssertPlaceHolder>" ; } } get ( ) { return value ; }
|
org . junit . Assert . assertNotNull ( file )
|
getLocation ( ) { javax . xml . stream . Location expected = mock ( javax . xml . stream . Location . class ) ; when ( this . reader . getLocation ( ) ) . thenReturn ( expected ) ; javax . xml . stream . Location result = this . filter . getLocation ( ) ; "<AssertPlaceHolder>" ; } getLocation ( ) { return this . url ; }
|
org . junit . Assert . assertSame ( expected , result )
|
givenEmployees_whenDeleteExistingEmployee_thenSuccessReturned ( ) { boolean deleteEmployee = employeeServiceProxy . deleteEmployee ( 3 ) ; "<AssertPlaceHolder>" ; } deleteEmployee ( int ) { employeeRepository . deleteEmployee ( id ) ; return javax . ws . rs . core . Response . status ( Response . Status . OK . getStatusCode ( ) ) . build ( ) ; }
|
org . junit . Assert . assertEquals ( deleteEmployee , true )
|
getDescriptorFromServer_missingTag ( ) { io . dockstore . client . cli . nested . ToolClient toolClient = new io . dockstore . client . cli . nested . ToolClient ( containersApi , containertagsApi , usersApi , client , false ) ; boolean exceptionThrown = false ; try { toolClient . getDescriptorFromServer ( ( ( ( io . dockstore . client . cli . nested . ToolClientTest . REPOSITORY ) + ":" ) + ( io . dockstore . client . cli . nested . ToolClientTest . MISSING_TAG ) ) , "cwl" ) ; } catch ( java . lang . Exception ex ) { exceptionThrown = true ; } "<AssertPlaceHolder>" ; } getDescriptorFromServer ( java . lang . String , java . lang . String ) { java . lang . String [ ] parts = entry . split ( ":" ) ; java . lang . String path = parts [ 0 ] ; java . lang . String tag = ( ( parts . length ) > 1 ) ? parts [ 1 ] : null ; io . swagger . client . model . SourceFile file = new io . swagger . client . model . SourceFile ( ) ; io . swagger . client . model . DockstoreTool container = getDockstoreTool ( path ) ; if ( ( tag == null ) && ( ( container . getDefaultVersion ( ) ) != null ) ) { tag = container . getDefaultVersion ( ) ; } if ( container != null ) { if ( descriptorType . equals ( io . dockstore . client . cli . nested . CWL_STRING ) ) { file = containersApi . cwl ( container . getId ( ) , tag ) ; } else if ( descriptorType . equals ( io . dockstore . client . cli . nested . WDL_STRING ) ) { file = containersApi . wdl ( container . getId ( ) , tag ) ; } else { throw new java . lang . UnsupportedOperationException ( "other<sp>languages<sp>not<sp>supported<sp>yet" ) ; } } else { io . dockstore . client . cli . ArgumentUtility . errorMessage ( ( "No<sp>tool<sp>found<sp>with<sp>path<sp>" + entry ) , Client . API_ERROR ) ; } return file ; }
|
org . junit . Assert . assertTrue ( exceptionThrown )
|
testDatumHuwelijkVolledig ( ) { nl . bzk . brp . model . objecttype . bericht . RelatieBericht huwelijk = new nl . bzk . brp . util . RelatieBuilder ( ) . bouwHuwlijkRelatie ( ) . setDatumAanvang ( 20080404 ) . getRelatie ( ) ; final java . util . List < nl . bzk . brp . model . validatie . Melding > meldingen = bral2102 . executeer ( null , huwelijk , null ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; }
|
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
|
testRoundingUpDateInWhere ( ) { java . sql . Connection conn = java . sql . DriverManager . getConnection ( getUrl ( ) ) ; java . sql . ResultSet rs = conn . createStatement ( ) . executeQuery ( ( ( "SELECT<sp>*<sp>FROM<sp>" + ( tableName ) ) + "<sp>WHERE<sp>ROUND(dt,<sp>'day')<sp>=<sp>to_date('2012-01-02<sp>00:00:00')" ) ) ; "<AssertPlaceHolder>" ; } next ( ) { if ( ! ( org . apache . phoenix . util . CursorUtil . moreValues ( cursorName ) ) ) { return null ; } else if ( ( fetchSize ) == ( rowsRead ) ) { return null ; } org . apache . phoenix . schema . tuple . Tuple next = delegate . next ( ) ; org . apache . phoenix . util . CursorUtil . updateCursor ( cursorName , next , delegate . peek ( ) ) ; ( rowsRead ) ++ ; return next ; }
|
org . junit . Assert . assertTrue ( rs . next ( ) )
|
testBuildWithParametersAndDisabledDefaultConstraintsWithOrderBy ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . department . Department parent = new org . lnu . is . domain . department . Department ( ) ; org . lnu . is . domain . department . type . DepartmentType departmentType = new org . lnu . is . domain . department . type . DepartmentType ( ) ; org . lnu . is . domain . order . Order order = new org . lnu . is . domain . order . Order ( ) ; java . lang . String name = "name" ; java . lang . String abbrName = "abbr<sp>name" ; java . lang . String manager = "manager" ; java . util . Date begDate = new java . util . Date ( ) ; java . util . Date endDate = new java . util . Date ( ) ; org . lnu . is . domain . department . Department context = new org . lnu . is . domain . department . Department ( ) ; context . setName ( name ) ; context . setParent ( parent ) ; context . setDepartmentType ( departmentType ) ; context . setOrder ( order ) ; context . setAbbrName ( abbrName ) ; context . setName ( name ) ; context . setManager ( manager ) ; context . setBegDate ( begDate ) ; context . setEndDate ( endDate ) ; org . lnu . is . pagination . OrderBy orderBy1 = new org . lnu . is . pagination . OrderBy ( "parent" , org . lnu . is . pagination . OrderByType . ASC ) ; org . lnu . is . pagination . OrderBy orderBy2 = new org . lnu . is . pagination . OrderBy ( "departmentType" , org . lnu . is . pagination . OrderByType . DESC ) ; org . lnu . is . pagination . OrderBy orderBy3 = new org . lnu . is . pagination . OrderBy ( "order" , org . lnu . is . pagination . OrderByType . ASC ) ; org . lnu . is . pagination . OrderBy orderBy4 = new org . lnu . is . pagination . OrderBy ( "abbrName" , org . lnu . is . pagination . OrderByType . DESC ) ; org . lnu . is . pagination . OrderBy orderBy5 = new org . lnu . is . pagination . OrderBy ( "name" , org . lnu . is . pagination . OrderByType . ASC ) ; org . lnu . is . pagination . OrderBy orderBy6 = new org . lnu . is . pagination . OrderBy ( "manager" , org . lnu . is . pagination . OrderByType . DESC ) ; org . lnu . is . pagination . OrderBy orderBy7 = new org . lnu . is . pagination . OrderBy ( "begDate" , org . lnu . is . pagination . OrderByType . ASC ) ; org . lnu . is . pagination . OrderBy orderBy8 = new org . lnu . is . pagination . OrderBy ( "abbr<sp>name" 0 , org . lnu . is . pagination . OrderByType . DESC ) ; org . lnu . is . pagination . OrderBy orderBy9 = new org . lnu . is . pagination . OrderBy ( "identifir" , org . lnu . is . pagination . OrderByType . ASC ) ; java . util . List < org . lnu . is . pagination . OrderBy > orders = java . util . Arrays . asList ( orderBy1 , orderBy2 , orderBy3 , orderBy4 , orderBy5 , orderBy6 , orderBy7 , orderBy8 , orderBy9 ) ; java . lang . String expectedQuery = "SELECT<sp>e<sp>FROM<sp>Department<sp>e<sp>WHERE<sp>(<sp>e.parent<sp>=<sp>:parent<sp>AND<sp>e.departmentType<sp>=<sp>:departmentType<sp>AND<sp>e.order<sp>=<sp>:order<sp>AND<sp>e.abbrName<sp>LIKE<sp>CONCAT('%',:abbrName,'%')<sp>AND<sp>e.name<sp>LIKE<sp>CONCAT('%',:name,'%')<sp>AND<sp>e.manager<sp>LIKE<sp>CONCAT('%',:manager,'%')<sp>AND<sp>e.begDate<sp><=<sp>:begDate<sp>AND<sp>e.endDate<sp>>=<sp>:endDate)<sp>ORDER<sp>BY<sp>e.parent<sp>ASC,<sp>e.departmentType<sp>DESC,<sp>e.order<sp>ASC,<sp>e.abbrName<sp>DESC,<sp>e.name<sp>ASC,<sp>e.manager<sp>DESC,<sp>e.begDate<sp>ASC,<sp>e.endDate<sp>DESC,<sp>e.identifir<sp>ASC" ; org . lnu . is . pagination . MultiplePagedSearch < org . lnu . is . domain . department . Department > pagedSearch = new org . lnu . is . pagination . MultiplePagedSearch ( ) ; pagedSearch . setEntity ( context ) ; pagedSearch . setOrders ( orders ) ; java . lang . String actualQuery = unit . build ( pagedSearch ) ; "<AssertPlaceHolder>" ; } setOrders ( java . util . List ) { this . orders = orders ; }
|
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
|
startIsExclusive ( ) { com . google . firebase . database . snapshot . Node node = NodeFromJSON ( com . google . firebase . database . TestHelpers . fromSingleQuotedString ( ( "{'bar':<sp>'bar-value',<sp>'foo':<sp>'foo-value',<sp>'quu':<sp>" + "'quu-value'}" ) ) ) ; com . google . firebase . database . snapshot . Node update = NodeFromJSON ( com . google . firebase . database . TestHelpers . fromSingleQuotedString ( "{'foo':<sp>'new-foo-value'<sp>}" ) ) ; com . google . firebase . database . snapshot . RangeMerge merge = new com . google . firebase . database . snapshot . RangeMerge ( com . google . firebase . database . TestHelpers . path ( "bar" ) , com . google . firebase . database . TestHelpers . path ( "foo" ) , update ) ; com . google . firebase . database . snapshot . Node actual = merge . applyTo ( node ) ; com . google . firebase . database . snapshot . Node expected = NodeFromJSON ( com . google . firebase . database . TestHelpers . fromSingleQuotedString ( "{'bar':<sp>'bar-value',<sp>'foo':<sp>'new-foo-value',<sp>'quu':<sp>'quu-value'}" ) ) ; "<AssertPlaceHolder>" ; } fromSingleQuotedString ( java . lang . String ) { return com . google . firebase . database . TestHelpers . fromJsonString ( json . replace ( "'" , "\"" ) ) ; }
|
org . junit . Assert . assertEquals ( expected , actual )
|
shouldThrowExceptionWhenPropertyIsNotSerialisable ( ) { final uk . gov . gchq . gaffer . store . schema . Schema mySchema = new uk . gov . gchq . gaffer . store . schema . Schema . Builder ( ) . edge ( TestGroups . EDGE , new uk . gov . gchq . gaffer . store . schema . SchemaEdgeDefinition . Builder ( ) . property ( TestPropertyNames . PROP_1 , "invalidType" ) . build ( ) ) . type ( "invalidType" , new uk . gov . gchq . gaffer . store . schema . TypeDefinition . Builder ( ) . clazz ( java . lang . Object . class ) . serialiser ( new uk . gov . gchq . gaffer . serialisation . implementation . StringSerialiser ( ) ) . build ( ) ) . build ( ) ; final uk . gov . gchq . gaffer . store . StoreProperties properties = mock ( uk . gov . gchq . gaffer . store . StoreProperties . class ) ; given ( properties . getJobExecutorThreadCount ( ) ) . willReturn ( 1 ) ; try { store . initialise ( "graphId" , mySchema , properties ) ; org . junit . Assert . fail ( ) ; } catch ( final uk . gov . gchq . gaffer . data . elementdefinition . exception . SchemaException exception ) { "<AssertPlaceHolder>" ; } } getMessage ( ) { return ( ( ( ( super . getMessage ( ) ) + "<sp>in<sp>string<sp>\'" ) + ( this . visibility ) ) + "\'<sp>at<sp>position<sp>" ) + ( super . getErrorOffset ( ) ) ; }
|
org . junit . Assert . assertNotNull ( exception . getMessage ( ) )
|
batchedProxyQueryStyle ( ) { java . lang . String host = "host.com" ; java . lang . String path = "/proxy/path" ; java . util . List < org . apache . shindig . common . uri . Uri > resources = com . google . common . collect . ImmutableList . of ( org . apache . shindig . gadgets . uri . DefaultProxyUriManagerTest . RESOURCE_1 , org . apache . shindig . gadgets . uri . DefaultProxyUriManagerTest . RESOURCE_2 , org . apache . shindig . gadgets . uri . DefaultProxyUriManagerTest . RESOURCE_3 ) ; java . lang . String [ ] versions = new java . lang . String [ ] { "v1" , "v2" , "v3" } ; java . util . List < org . apache . shindig . common . uri . Uri > uris = makeAndGet ( host , path , true , true , resources , versions ) ; "<AssertPlaceHolder>" ; for ( int i = 0 ; i < 3 ; ++ i ) { verifyQueryUri ( resources . get ( i ) , uris . get ( i ) , true , true , versions [ i ] , host , path ) ; } } size ( ) { java . util . List < java . lang . Object [ ] > s = stackHolder . get ( ) ; if ( s == null ) { return 0 ; } else { return s . size ( ) ; } }
|
org . junit . Assert . assertEquals ( 3 , uris . size ( ) )
|
testBlobGetAllInvalidPrefixFailure ( ) { cleanupLists ( ) ; prefixes . add ( "bizarre-bizarre/" ) ; includes . add ( true ) ; creates . add ( true ) ; org . talend . components . api . component . runtime . BoundedReader reader = createGetReader ( false ) ; "<AssertPlaceHolder>" ; reader . close ( ) ; } start ( ) { started = true ; makeHttpRequest ( ) ; return hasMoreRecords ; }
|
org . junit . Assert . assertFalse ( reader . start ( ) )
|
testQERR ( ) { java . lang . String logFileName = constructor . addEXCP ( ) . adddQERR ( ) . build ( LogFileTypes . FILE ) ; org . v8LogScanner . LocalTCPLogScanner . ClientsManager manager = new org . v8LogScanner . LocalTCPLogScanner . ClientsManager ( ) ; org . v8LogScanner . LocalTCPLogScanner . V8LogScannerClient localClient = manager . localClient ( ) ; org . v8LogScanner . rgx . ScanProfile profile = localClient . getProfile ( ) ; profile . addLogPath ( logFileName ) ; org . v8LogScanner . rgx . RegExp rgx = new org . v8LogScanner . rgx . RegExp ( org . v8LogScanner . rgx . RegExp . EventTypes . QERR ) ; profile . addRegExp ( rgx ) ; localClient . startRgxOp ( ) ; java . util . List < org . v8LogScanner . rgx . SelectorEntry > entries = localClient . select ( 100 , SelectDirections . FORWARD ) ; "<AssertPlaceHolder>" ; } size ( ) { return elements . size ( ) ; }
|
org . junit . Assert . assertEquals ( 1 , entries . size ( ) )
|
shouldReturnNotEqualsWhenComparingWorkingTreeAndCache ( ) { org . eclipse . egit . ui . internal . synchronize . model . GitModelWorkingTree left = new org . eclipse . egit . ui . internal . synchronize . model . GitModelWorkingTree ( createModelRepository ( ) , lookupRepository ( leftRepoFile ) , null ) ; org . eclipse . egit . ui . internal . synchronize . model . GitModelCache right = mock ( org . eclipse . egit . ui . internal . synchronize . model . GitModelCache . class ) ; boolean actual = left . equals ( right ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj . getClass ( ) ) ) { return false ; } org . eclipse . egit . ui . CommitMessageWithCaretPosition other = ( ( org . eclipse . egit . ui . CommitMessageWithCaretPosition ) ( obj ) ) ; return ( ( caretPosition ) == ( other . caretPosition ) ) && ( java . util . Objects . equals ( message , other . message ) ) ; }
|
org . junit . Assert . assertFalse ( actual )
|
testDefaultCompressBuildAttachment ( ) { hudson . plugins . emailext . EmailType t = new hudson . plugins . emailext . EmailType ( ) ; "<AssertPlaceHolder>" ; } getCompressBuildLog ( ) { return compressBuildLog ; }
|
org . junit . Assert . assertFalse ( t . getCompressBuildLog ( ) )
|
initiallyEmpty ( ) { com . vaadin . ui . RichTextArea tf = new com . vaadin . ui . RichTextArea ( ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( size ( ) ) == 0 ; }
|
org . junit . Assert . assertTrue ( tf . isEmpty ( ) )
|
testbuildTopSlowestSql ( ) { java . lang . String logFileName = constructor . addSDBL ( ) . addDBMSSQL ( ) . addEXCP ( ) . build ( LogFileTypes . FILE ) ; org . v8LogScanner . LocalTCPLogScanner . ClientsManager manager = new org . v8LogScanner . LocalTCPLogScanner . ClientsManager ( ) ; org . v8LogScanner . LocalTCPLogScanner . V8LogScannerClient localClient = manager . localClient ( ) ; org . v8LogScanner . rgx . ScanProfile profile = localClient . getProfile ( ) ; org . v8LogScanner . rgx . ScanProfile . buildTopSlowestSql ( profile ) ; profile . addLogPath ( logFileName ) ; manager . startRgxOp ( ) ; java . util . List < org . v8LogScanner . rgx . SelectorEntry > logs = localClient . select ( 100 , SelectDirections . FORWARD ) ; "<AssertPlaceHolder>" ; org . v8LogScanner . testV8LogScanner . V8LogFileConstructor . deleteLogFile ( logFileName ) ; } size ( ) { return elements . size ( ) ; }
|
org . junit . Assert . assertEquals ( 2 , logs . size ( ) )
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.