input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
canIgnoreThrowables ( ) { final java . lang . AssertionError exception = new java . lang . AssertionError ( ) ; when ( mockClock . laterBy ( 0L ) ) . thenReturn ( 2L ) ; when ( mockCondition . apply ( mockDriver ) ) . thenThrow ( exception ) ; when ( mockClock . isNowBefore ( 2L ) ) . thenReturn ( false ) ; org . openqa . selenium . support . ui . Wait < org . openqa . selenium . WebDriver > wait = new org . openqa . selenium . support . ui . FluentWait < org . openqa . selenium . WebDriver > ( mockDriver , mockClock , mockSleeper ) . withTimeout ( 0 , TimeUnit . MILLISECONDS ) . pollingEvery ( 2 , TimeUnit . SECONDS ) . ignoring ( org . openqa . selenium . support . ui . AssertionError . class ) ; try { wait . until ( mockCondition ) ; org . junit . Assert . fail ( ) ; } catch ( org . openqa . selenium . TimeoutException expected ) { "<AssertPlaceHolder>" ; } } getCause ( ) { return cause ; }
org . junit . Assert . assertSame ( exception , expected . getCause ( ) )
testCollectionPropertyToTableModelRows ( ) { System . out . println ( "collectionPropertyToTableModelRows" ) ; java . lang . String propname = "prop" ; org . apache . jmeter . gui . util . PowerTableModel modelSrc = getTestModel ( ) ; org . apache . jmeter . testelement . property . CollectionProperty propExp = kg . apc . jmeter . JMeterPluginsUtils . tableModelRowsToCollectionProperty ( modelSrc , propname ) ; org . apache . jmeter . gui . util . PowerTableModel modelDst = getTestModel ( ) ; modelDst . clearData ( ) ; kg . apc . jmeter . JMeterPluginsUtils . collectionPropertyToTableModelRows ( propExp , modelDst ) ; org . apache . jmeter . testelement . property . CollectionProperty propRes = kg . apc . jmeter . JMeterPluginsUtils . tableModelRowsToCollectionProperty ( modelDst , propname ) ; "<AssertPlaceHolder>" ; } toString ( ) { return getThreadName ( ) ; }
org . junit . Assert . assertEquals ( propExp . toString ( ) , propRes . toString ( ) )
buildServerContext ( ) { com . xjeffrose . xio . tls . TlsConfig tlsConfig = com . xjeffrose . xio . tls . TlsConfig . builderFrom ( com . typesafe . config . ConfigFactory . load ( "tls-reference.conf" ) ) . build ( ) ; io . netty . handler . ssl . SslContext context = com . xjeffrose . xio . tls . SslContextFactory . buildServerContext ( tlsConfig ) ; "<AssertPlaceHolder>" ; } buildServerContext ( com . xjeffrose . xio . tls . TlsConfig ) { return com . xjeffrose . xio . tls . SslContextFactory . buildServerContext ( config , com . xjeffrose . xio . tls . SslContextFactory . buildTrustManagerFactory ( config . getTrustedCerts ( ) ) ) ; }
org . junit . Assert . assertNotNull ( context )
testEqualsSelf ( ) { org . jfree . data . time . TimePeriodValue tpv = new org . jfree . data . time . TimePeriodValue ( new org . jfree . data . time . Day ( ) , 55.75 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == o ) { return true ; } if ( ! ( o instanceof org . jfree . base . modules . PackageState ) ) { return false ; } final org . jfree . base . modules . PackageState packageState = ( ( org . jfree . base . modules . PackageState ) ( o ) ) ; if ( ! ( this . module . getModuleClass ( ) . equals ( packageState . module . getModuleClass ( ) ) ) ) { return false ; } return true ; }
org . junit . Assert . assertTrue ( tpv . equals ( tpv ) )
testCorrecteDatumOnbekend ( ) { nl . bzk . brp . bijhouding . bericht . model . GeboorteElement geboorte = new nl . bzk . brp . bijhouding . bericht . model . GeboorteElement ( attributes , new nl . bzk . brp . bijhouding . bericht . model . DatumElement ( 20160002 ) , null , null , nl . bzk . brp . bijhouding . bericht . model . GeboorteElementTest . BUITENLANDSE_PLAATS , null , null , nl . bzk . brp . bijhouding . bericht . model . GeboorteElementTest . LANDGEBIEDCODE_NIET_NL ) ; "<AssertPlaceHolder>" ; } valideer ( ) { if ( ( ( ( autorisatiebundel ) != null ) && ( ( autorisatiebundel . getDienst ( ) ) != null ) ) && ( ( autorisatiebundel . getToegangLeveringsautorisatie ( ) ) != null ) ) { final boolean valtPersoonBinnenPopulatieBeperking = valtPersoonBinnenPopulatieBeperking ( ) ; if ( ! valtPersoonBinnenPopulatieBeperking ) { return new nl . bzk . brp . domain . algemeen . Melding ( nl . bzk . algemeenbrp . dal . domein . brp . enums . Regel . R1403 ) ; } } return null ; }
org . junit . Assert . assertEquals ( 0 , geboorte . valideer ( ) . size ( ) )
testSetSegmentQualPos ( ) { org . pb . x12 . Cf cf = new org . pb . x12 . Cf ( "1000A" , "NM1" ) ; java . lang . String [ ] quals = new java . lang . String [ ] { "41" } ; cf . setSegmentQuals ( quals ) ; cf . setSegmentQualPos ( 1 ) ; "<AssertPlaceHolder>" ; } getSegmentQualPos ( ) { return segmentQualPos ; }
org . junit . Assert . assertEquals ( new java . lang . Integer ( 1 ) , cf . getSegmentQualPos ( ) )
testRelativeClassName ( ) { java . lang . String expected = "com.jakewharton.test.ui.SomeClass" ; java . lang . String actual = com . actionbarsherlock . internal . ActionBarSherlockCompat . cleanActivityName ( "com.jakewharton.test" , ".ui.SomeClass" ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( expected , org . hamcrest . CoreMatchers . equalTo ( actual ) )
shouldReportInitialStateAsOnlineIfPopulationCompletedSuccessfully ( ) { provider = newProvider ( ) ; org . neo4j . kernel . api . index . IndexPopulator populator = provider . getPopulator ( descriptor ( ) , samplingConfig ( ) ) ; populator . create ( ) ; populator . close ( true ) ; org . neo4j . internal . kernel . api . InternalIndexState state = provider . getInitialState ( descriptor ( ) ) ; "<AssertPlaceHolder>" ; } getInitialState ( org . neo4j . storageengine . api . schema . StoreIndexDescriptor ) { org . neo4j . kernel . api . impl . index . storage . PartitionedIndexStorage indexStorage = getIndexStorage ( descriptor . getId ( ) ) ; java . lang . String failure = indexStorage . getStoredIndexFailure ( ) ; if ( failure != null ) { return org . neo4j . internal . kernel . api . InternalIndexState . FAILED ; } try { return indexIsOnline ( indexStorage , descriptor ) ? org . neo4j . internal . kernel . api . InternalIndexState . ONLINE : org . neo4j . internal . kernel . api . InternalIndexState . POPULATING ; } catch ( java . io . IOException e ) { return org . neo4j . internal . kernel . api . InternalIndexState . POPULATING ; } }
org . junit . Assert . assertEquals ( InternalIndexState . ONLINE , state )
noSuchStoreAllQuery ( ) { com . github . ftrossbach . kiqr . client . service . SpecificBlockingKiqrClient < java . lang . String , java . lang . Long > client = new com . github . ftrossbach . kiqr . client . service . rest . SpecificBlockingRestKiqrClientImpl ( "localhost" , 44321 , "idontexist" , java . lang . String . class , com . github . ftrossbach . kiqr . client . service . rest . Long . class , org . apache . kafka . common . serialization . Serdes . String ( ) , org . apache . kafka . common . serialization . Serdes . Long ( ) ) ; com . github . ftrossbach . kiqr . client . service . rest . Map < java . lang . String , java . lang . Long > result = client . getAllKeyValues ( ) ; "<AssertPlaceHolder>" ; } getAllKeyValues ( ) { return genericClient . getAllKeyValues ( store , keyClass , valueClass , keySerde , valueSerde ) ; }
org . junit . Assert . assertTrue ( result . isEmpty ( ) )
loadWithInexistingUserOwner ( ) { org . phenotips . data . permissions . EntityPermissionsManager permissions = this . mocker . getInstance ( org . phenotips . data . permissions . EntityPermissionsManager . class ) ; org . phenotips . data . permissions . EntityAccess access = mock ( org . phenotips . data . permissions . EntityAccess . class ) ; when ( permissions . getEntityAccess ( this . patient ) ) . thenReturn ( access ) ; org . phenotips . data . permissions . Owner owner = mock ( org . phenotips . data . permissions . Owner . class ) ; when ( access . getOwner ( ) ) . thenReturn ( owner ) ; when ( owner . isGroup ( ) ) . thenReturn ( false ) ; when ( owner . getUser ( ) ) . thenReturn ( org . phenotips . data . permissions . internal . OwnerContactProviderTest . USER ) ; org . xwiki . users . UserManager users = this . mocker . getInstance ( org . xwiki . users . UserManager . class ) ; when ( users . getUser ( org . phenotips . data . permissions . internal . OwnerContactProviderTest . USER_STR ) ) . thenReturn ( null ) ; java . util . List < org . phenotips . data . ContactInfo > result = this . mocker . getComponentUnderTest ( ) . getContacts ( this . patient ) ; "<AssertPlaceHolder>" ; } getContacts ( org . phenotips . data . Patient ) { org . xwiki . model . reference . DocumentReference reporter = patient . getReporter ( ) ; if ( reporter == null ) { return java . util . Collections . emptyList ( ) ; } java . util . List < org . phenotips . data . ContactInfo > list = new java . util . ArrayList ( ) ; org . phenotips . data . ContactInfo . Builder contactInfo = new org . phenotips . data . ContactInfo . Builder ( ) ; contactInfo . withUserId ( this . serializer . serialize ( reporter ) ) ; org . xwiki . users . User user = this . userManager . getUser ( reporter . toString ( ) ) ; if ( user != null ) { java . lang . String email = ( ( java . lang . String ) ( user . getAttribute ( "email" ) ) ) ; java . lang . String institution = ( ( java . lang . String ) ( user . getAttribute ( "company" ) ) ) ; contactInfo . withName ( user . getName ( ) ) ; contactInfo . withEmail ( email ) ; contactInfo . withInstitution ( institution ) ; contactInfo . withUrl ( ( ( user . getProfileURI ( ) ) != null ? user . getProfileURI ( ) . toString ( ) : null ) ) ; } list . add ( contactInfo . build ( ) ) ; return list ; }
org . junit . Assert . assertNull ( result )
test_CreateTestOperation ( ) { com . hazelcast . simulator . worker . operations . CreateTestOperation op = new com . hazelcast . simulator . worker . operations . CreateTestOperation ( new com . hazelcast . simulator . common . TestCase ( "foo" ) ) ; processor . process ( op , sourceAddress , promise ) ; verify ( testManager ) . createTest ( op ) ; "<AssertPlaceHolder>" ; } hasAnswer ( ) { return ( answer ) != null ; }
org . junit . Assert . assertTrue ( promise . hasAnswer ( ) )
testChinese ( ) { byte [ ] bufferDe = org . apache . hyracks . util . string . UTF8StringUtil . writeStringToBytes ( "" ) ; byte [ ] bufferLi = org . apache . hyracks . util . string . UTF8StringUtil . writeStringToBytes ( "" ) ; int ret = org . apache . hyracks . util . string . UTF8StringUtil . compareTo ( bufferDe , 0 , bufferLi , 0 ) ; "<AssertPlaceHolder>" ; } compareTo ( byte [ ] , int , byte [ ] , int ) { return org . apache . hyracks . util . string . UTF8StringUtil . compareTo ( thisBytes , thisStart , thatBytes , thatStart , false , false ) ; }
org . junit . Assert . assertTrue ( ( ret != 0 ) )
test7 ( ) { nopol_examples . nopol_example_2 . NopolExample ex = new nopol_examples . nopol_example_2 . NopolExample ( ) ; "<AssertPlaceHolder>" ; } getMax ( int , int ) { if ( ( b - a ) < 0 ) { return b ; } return a ; }
org . junit . Assert . assertEquals ( ( - 2 ) , ex . getMax ( ( - 4 ) , ( - 2 ) ) )
nullNodeList ( ) { com . navercorp . pinpoint . web . vo . Range range = new com . navercorp . pinpoint . web . vo . Range ( 0 , ( 60 * 1000 ) ) ; com . navercorp . pinpoint . web . applicationmap . nodes . NodeList nodeList = null ; com . navercorp . pinpoint . web . applicationmap . rawdata . LinkDataDuplexMap linkDataDuplexMap = mock ( com . navercorp . pinpoint . web . applicationmap . rawdata . LinkDataDuplexMap . class ) ; serverInfoAppender . appendServerInfo ( range , nodeList , linkDataDuplexMap ) ; "<AssertPlaceHolder>" ; verifyZeroInteractions ( serverInstanceListDataSource ) ; verifyZeroInteractions ( linkDataDuplexMap ) ; } appendServerInfo ( com . navercorp . pinpoint . web . vo . Range , com . navercorp . pinpoint . web . applicationmap . nodes . NodeList , com . navercorp . pinpoint . web . applicationmap . rawdata . LinkDataDuplexMap ) { if ( source == null ) { return ; } java . util . Collection < com . navercorp . pinpoint . web . applicationmap . nodes . Node > nodes = source . getNodeList ( ) ; if ( org . springframework . util . CollectionUtils . isEmpty ( nodes ) ) { return ; } java . util . concurrent . CompletableFuture [ ] futures = getServerInstanceListFutures ( range , nodes , linkDataDuplexMap ) ; java . util . concurrent . CompletableFuture . allOf ( futures ) . join ( ) ; }
org . junit . Assert . assertNull ( nodeList )
testGetAllBids_Basic ( ) { org . peidevs . waro . function . impl . Round round = new org . peidevs . waro . function . impl . Round ( ) ; int numCards = 12 ; int maxCard = numCards ; org . peidevs . waro . function . impl . List < org . peidevs . waro . function . impl . Player > players = new org . peidevs . waro . function . impl . ArrayList ( ) ; org . peidevs . waro . function . impl . Hand h1 = new org . peidevs . waro . function . impl . Hand ( org . peidevs . waro . function . impl . Arrays . asList ( new java . lang . Integer [ ] { 1 , 2 , 3 } ) ) ; org . peidevs . waro . function . impl . Player p1 = new org . peidevs . waro . function . impl . Player ( "p1" , strategy , maxCard , h1 ) ; org . peidevs . waro . function . impl . Hand h2 = new org . peidevs . waro . function . impl . Hand ( org . peidevs . waro . function . impl . Arrays . asList ( new java . lang . Integer [ ] { 4 , 5 , 6 } ) ) ; org . peidevs . waro . function . impl . Player p2 = new org . peidevs . waro . function . impl . Player ( "p2" , strategy , maxCard , h2 ) ; org . peidevs . waro . function . impl . Hand h3 = new org . peidevs . waro . function . impl . Hand ( org . peidevs . waro . function . impl . Arrays . asList ( new java . lang . Integer [ ] { 7 , 8 , 9 } ) ) ; org . peidevs . waro . function . impl . Player p3 = new org . peidevs . waro . function . impl . Player ( "p3" , strategy , maxCard , h3 ) ; players . add ( p1 ) ; players . add ( p2 ) ; players . add ( p3 ) ; org . peidevs . waro . function . impl . List < org . peidevs . waro . function . impl . Bid > result = round . getAllBids ( players . stream ( ) , 10 ) ; "<AssertPlaceHolder>" ; } getAllBids ( org . peidevs . waro . function . impl . Stream , int ) { return players . map ( ( p ) -> p . getBid ( prizeCard ) ) . collect ( toList ( ) ) ; }
org . junit . Assert . assertEquals ( 3 , result . size ( ) )
testExtCaps111WithFullSettings ( ) { final org . geoserver . config . ServiceInfo serviceInfo = getGeoServer ( ) . getService ( org . geoserver . wcs . WCSInfo . class ) ; final org . geoserver . catalog . MetadataMap metadata = serviceInfo . getMetadata ( ) ; org . geoserver . inspire . InspireTestSupport . clearInspireMetadata ( metadata ) ; metadata . put ( CREATE_EXTENDED_CAPABILITIES . key , true ) ; metadata . put ( SERVICE_METADATA_URL . key , "http://foo.com?bar=baz" ) ; metadata . put ( SERVICE_METADATA_TYPE . key , "application/vnd.iso.19139+xml" ) ; metadata . put ( LANGUAGE . key , "fre" ) ; metadata . put ( SPATIAL_DATASET_IDENTIFIER_TYPE . key , "one,http://www.geoserver.org/one;two,http://www.geoserver.org/two,http://metadata.geoserver.org/id?two" ) ; getGeoServer ( ) . save ( serviceInfo ) ; final org . w3c . dom . Document dom = getAsDOM ( org . geoserver . inspire . wcs . WCSExtendedCapabilitiesTest . WCS_1_1_1_GETCAPREQUEST ) ; final org . w3c . dom . NodeList nodeList = dom . getElementsByTagNameNS ( org . geoserver . inspire . InspireSchema . DLS_NAMESPACE , "ExtendedCapabilities" ) ; "<AssertPlaceHolder>" ; } getLength ( ) { return length ; }
org . junit . Assert . assertTrue ( ( ( nodeList . getLength ( ) ) == 0 ) )
twoEqualsImagesAreActuallyEqual ( ) { bogdan . imagefilters . effect . bitmap . SimpleBitmap equalImage = new bogdan . imagefilters . effect . bitmap . SimpleBitmap ( bogdan . imagefilters . effect . bitmap . SimpleBitmapTest . originalImageFilename ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ! ( obj instanceof bogdan . imagefilters . effect . bitmap . Bitmap ) ) return false ; bogdan . imagefilters . effect . bitmap . Bitmap otherBitmap = ( ( bogdan . imagefilters . effect . bitmap . Bitmap ) ( obj ) ) ; if ( ! ( this . isSameDimensionAs ( otherBitmap ) ) ) return false ; if ( ! ( this . isSameContentAs ( otherBitmap . getData ( ) ) ) ) return false ; return true ; }
org . junit . Assert . assertTrue ( bogdan . imagefilters . effect . bitmap . SimpleBitmapTest . bitmap . equals ( equalImage ) )
testPosZero ( ) { java . lang . String numA = "27384627835298756289327365" ; java . lang . String numB = "0" ; java . lang . String res = "27384627835298756289327365" ; java . math . BigInteger aNumber = new java . math . BigInteger ( numA ) ; java . math . BigInteger bNumber = new java . math . BigInteger ( numB ) ; java . math . BigInteger result = aNumber . xor ( bNumber ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ! ( object instanceof org . teavm . classlib . java . text . TParsePosition ) ) { return false ; } org . teavm . classlib . java . text . TParsePosition pos = ( ( org . teavm . classlib . java . text . TParsePosition ) ( object ) ) ; return ( ( currentPosition ) == ( pos . currentPosition ) ) && ( ( errorIndex ) == ( pos . errorIndex ) ) ; }
org . junit . Assert . assertTrue ( res . equals ( result . toString ( ) ) )
replaceWithNull ( ) { com . bjoernkw . mailtrigger . mailer . PlaceholderProcessor placeholderProcessor = new com . bjoernkw . mailtrigger . mailer . PlaceholderProcessor ( ) ; java . lang . String beginning = "Test" ; java . lang . String placeholder = "REPLACEMENT" ; java . lang . String parsedText = placeholderProcessor . parseInputField ( ( beginning + "${REPLACEMENT}" ) , placeholder , null ) ; "<AssertPlaceHolder>" ; } parseInputField ( java . lang . String , java . lang . String , java . lang . String ) { java . util . Map < java . lang . String , java . lang . String > replacements = new java . util . HashMap ( ) ; replacements . put ( placeholder , replacement ) ; return parseInputField ( input , replacements ) ; }
org . junit . Assert . assertEquals ( beginning , parsedText )
appConf ( ) { java . lang . String conf = ( ( java . lang . String ) ( noLivyConf . livyConfMap . get ( "name" ) ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( "test" , conf )
testSaml1TokenHOKConfig ( ) { org . apache . cxf . service . Service service = createService ( ) ; java . util . Map < java . lang . String , java . lang . Object > inProperties = new java . util . HashMap ( ) ; inProperties . put ( ConfigurationConstants . ACTION , ( ( ( org . apache . wss4j . common . ConfigurationConstants . SAML_TOKEN_SIGNED ) + "<sp>" ) + ( org . apache . wss4j . common . ConfigurationConstants . SIGNATURE ) ) ) ; inProperties . put ( ConfigurationConstants . SIG_VER_PROP_FILE , "insecurity.properties" ) ; final java . util . Map < javax . xml . namespace . QName , java . lang . Object > customMap = new java . util . HashMap ( ) ; org . apache . cxf . ws . security . wss4j . saml . CustomSamlValidator validator = new org . apache . cxf . ws . security . wss4j . saml . CustomSamlValidator ( ) ; customMap . put ( WSConstants . SAML_TOKEN , validator ) ; customMap . put ( WSConstants . SAML2_TOKEN , validator ) ; inProperties . put ( WSS4JInInterceptor . VALIDATOR_MAP , customMap ) ; org . apache . cxf . ws . security . wss4j . WSS4JInInterceptor inInterceptor = new org . apache . cxf . ws . security . wss4j . WSS4JInInterceptor ( inProperties ) ; service . getInInterceptors ( ) . add ( inInterceptor ) ; org . apache . cxf . ws . security . wss4j . Echo echo = createClientProxy ( ) ; org . apache . cxf . endpoint . Client client = org . apache . cxf . frontend . ClientProxy . getClient ( echo ) ; client . getInInterceptors ( ) . add ( new org . apache . cxf . ext . logging . LoggingInInterceptor ( ) ) ; client . getOutInterceptors ( ) . add ( new org . apache . cxf . ext . logging . LoggingOutInterceptor ( ) ) ; java . util . Map < java . lang . String , java . lang . Object > outConfig = new java . util . HashMap ( ) ; outConfig . put ( ConfigurationConstants . ACTION , ConfigurationConstants . SAML_TOKEN_SIGNED ) ; org . apache . cxf . ws . security . wss4j . saml . SAML1CallbackHandler callbackHandler = new org . apache . cxf . ws . security . wss4j . saml . SAML1CallbackHandler ( ) ; callbackHandler . setSignAssertion ( true ) ; callbackHandler . setConfirmationMethod ( SAML1Constants . CONF_HOLDER_KEY ) ; outConfig . put ( ConfigurationConstants . SAML_CALLBACK_REF , callbackHandler ) ; outConfig . put ( ConfigurationConstants . PW_CALLBACK_REF , new org . apache . cxf . ws . security . wss4j . saml . PasswordCallbackHandler ( ) ) ; outConfig . put ( ConfigurationConstants . SIGNATURE_USER , "alice" ) ; outConfig . put ( ConfigurationConstants . SIG_PROP_FILE , "alice.properties" ) ; outConfig . put ( ConfigurationConstants . SIG_KEY_ID , "DirectReference" ) ; org . apache . cxf . ws . security . wss4j . WSS4JStaxOutInterceptor ohandler = new org . apache . cxf . ws . security . wss4j . WSS4JStaxOutInterceptor ( outConfig ) ; client . getOutInterceptors ( ) . add ( ohandler ) ; try { echo . echo ( "test" ) ; org . junit . Assert . fail ( "Failure<sp>expected<sp>on<sp>receiving<sp>sender<sp>vouches<sp>instead<sp>of<sp>HOK" ) ; } catch ( org . apache . cxf . ws . security . wss4j . saml . javax ex ) { } validator . setRequireSenderVouches ( false ) ; "<AssertPlaceHolder>" ; } echo ( int ) { return i ; }
org . junit . Assert . assertEquals ( "test" , echo . echo ( "test" ) )
testHtml ( ) { com . xti . jenkins . plugin . awslambda . upload . LambdaUploadVariables variables = new com . xti . jenkins . plugin . awslambda . upload . LambdaUploadVariables ( false , "accessKeyId" , hudson . util . Secret . fromString ( "secretKey" ) , "nodejs" 1 , "ziplocation" , "nodejs" 2 , "nodejs" 0 , "handler" , "1024" , "role" , "nodejs" , "30" , true , false , "nodejs" 3 , null , false , "" , "" ) ; java . util . List < com . xti . jenkins . plugin . awslambda . upload . LambdaUploadVariables > variablesList = new java . util . ArrayList ( ) ; variablesList . add ( variables ) ; com . xti . jenkins . plugin . awslambda . upload . FreeStyleProject p = j . createFreeStyleProject ( ) ; com . xti . jenkins . plugin . awslambda . upload . LambdaUploadPublisher before = new com . xti . jenkins . plugin . awslambda . upload . LambdaUploadPublisher ( variablesList ) ; p . getPublishersList ( ) . add ( before ) ; j . submit ( j . createWebClient ( ) . getPage ( p , "configure" ) . getFormByName ( "nodejs" 4 ) ) ; com . xti . jenkins . plugin . awslambda . upload . LambdaUploadPublisher after = p . getPublishersList ( ) . get ( com . xti . jenkins . plugin . awslambda . upload . LambdaUploadPublisher . class ) ; "<AssertPlaceHolder>" ; } fromString ( java . lang . String ) { if ( org . apache . commons . lang . StringUtils . isEmpty ( mode ) ) { return com . xti . jenkins . plugin . awslambda . upload . UpdateModeValue . Full ; } if ( com . xti . jenkins . plugin . awslambda . upload . UpdateModeValue . Code . mode . equals ( mode ) ) { return com . xti . jenkins . plugin . awslambda . upload . UpdateModeValue . Code ; } if ( com . xti . jenkins . plugin . awslambda . upload . UpdateModeValue . Config . mode . equals ( mode ) ) { return com . xti . jenkins . plugin . awslambda . upload . UpdateModeValue . Config ; } return com . xti . jenkins . plugin . awslambda . upload . UpdateModeValue . Full ; }
org . junit . Assert . assertEquals ( before , after )
testField ( ) { com . savoirtech . logging . slf4j . json . logger . JsonLogger result = this . logger . field ( "x-field-key-x" , "x-field-value-x" ) ; "<AssertPlaceHolder>" ; } field ( java . lang . String , java . util . function . Supplier ) { try { if ( value == null ) { jsonObject . add ( key , null ) ; } else { jsonObject . add ( key , gson . toJsonTree ( value . get ( ) ) ) ; } } catch ( java . lang . Exception e ) { jsonObject . add ( key , gson . toJsonTree ( formatException ( e ) ) ) ; } return this ; }
org . junit . Assert . assertSame ( result , this . logger )
testAdd2 ( ) { v . add ( 0 , org . apache . tools . ant . util . VectorSetTest . O ) ; v . add ( 1 , org . apache . tools . ant . util . VectorSetTest . O ) ; "<AssertPlaceHolder>" ; } size ( ) { if ( isReference ( ) ) { return getRef ( ) . size ( ) ; } dieOnCircularReference ( ) ; return streamArchives ( ) . mapToInt ( ArchiveFileSet :: size ) . sum ( ) ; }
org . junit . Assert . assertEquals ( 1 , v . size ( ) )
testExecuteWithExceptionAndGetJobEntityWithSecurityException ( ) { org . activiti . engine . impl . interceptor . CommandConfig config = mock ( org . activiti . engine . impl . interceptor . CommandConfig . class ) ; org . activiti . engine . impl . persistence . entity . JobEntity jobEntity = mock ( org . activiti . engine . impl . persistence . entity . JobEntity . class ) ; org . activiti . engine . impl . cmd . ExecuteAsyncJobCmd command = new org . activiti . engine . impl . cmd . ExecuteAsyncJobCmd ( jobEntity ) ; doThrow ( org . finra . herd . service . activiti . SecurityException . class ) . when ( jobEntity ) . getId ( ) ; try { herdCommandInvoker . execute ( config , command ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . IllegalStateException e ) { "<AssertPlaceHolder>" ; } } getName ( ) { return null ; }
org . junit . Assert . assertEquals ( org . finra . herd . service . activiti . SecurityException . class . getName ( ) , e . getMessage ( ) )
copyInputStreamValidOutputStream ( ) { java . io . ByteArrayOutputStream outputStream = new org . apache . maven . shared . utils . io . IOUtilTest . DontCloseByteArrayOutputStream ( ) ; byte [ ] input = new byte [ ] { 1 , 2 , 3 , 4 , 5 , 6 } ; org . apache . maven . shared . utils . io . IOUtil . copy ( new org . apache . maven . shared . utils . io . IOUtilTest . DontCloseByteArrayInputStream ( input ) , outputStream ) ; "<AssertPlaceHolder>" ; } copy ( java . io . InputStream , java . io . OutputStream ) { org . apache . maven . shared . utils . io . IOUtil . copy ( input , output , org . apache . maven . shared . utils . io . IOUtil . DEFAULT_BUFFER_SIZE ) ; }
org . junit . Assert . assertThat ( outputStream . toByteArray ( ) , org . hamcrest . CoreMatchers . is ( input ) )
testCreate ( ) { java . util . List < com . yahoo . platform . yui . compressor . JavaScriptToken > tokens = new java . util . ArrayList ( ) ; tokens . add ( new com . yahoo . platform . yui . compressor . JavaScriptToken ( org . mozilla . javascript . Token . STRING , "Test" ) ) ; tokens . add ( new com . yahoo . platform . yui . compressor . JavaScriptToken ( org . mozilla . javascript . Token . LB , "[" ) ) ; org . eclipse . rap . clientbuilder . TokenList tokenList = new org . eclipse . rap . clientbuilder . TokenList ( tokens ) ; "<AssertPlaceHolder>" ; } size ( ) { return new org . eclipse . jface . internal . databinding . swt . ControlSizeProperty ( ) ; }
org . junit . Assert . assertEquals ( 2 , tokenList . size ( ) )
testGetLocation ( ) { final java . net . URL location = source . getLocation ( ) ; "<AssertPlaceHolder>" ; } getLocation ( ) { return this . url ; }
org . junit . Assert . assertEquals ( this . location , location )
testNoConflictIfSameDiff ( ) { org . locationtech . jts . geom . Geometry oldGeom = new org . locationtech . jts . io . WKTReader ( ) . read ( "MULTILINESTRING<sp>((40<sp>40,<sp>20<sp>45,<sp>45<sp>30,<sp>40<sp>40),(20<sp>35,<sp>45<sp>10,<sp>30<sp>5,<sp>10<sp>30,<sp>20<sp>35))" ) ; org . locationtech . jts . geom . Geometry newGeom = new org . locationtech . jts . io . WKTReader ( ) . read ( "MULTILINESTRING<sp>((40<sp>40,<sp>20<sp>45,<sp>45<sp>35,<sp>30<sp>30),(20<sp>35,<sp>45<sp>10,<sp>30<sp>5,<sp>10<sp>30,<sp>20<sp>35))" ) ; org . locationtech . geogig . plumbing . diff . GeometryAttributeDiff diff = new org . locationtech . geogig . plumbing . diff . GeometryAttributeDiff ( oldGeom , newGeom ) ; org . locationtech . geogig . plumbing . diff . GeometryAttributeDiff diff2 = new org . locationtech . geogig . plumbing . diff . GeometryAttributeDiff ( oldGeom , newGeom ) ; "<AssertPlaceHolder>" ; } conflicts ( org . locationtech . geogig . plumbing . diff . AttributeDiff ) { if ( ! ( ad instanceof org . locationtech . geogig . plumbing . diff . GeometryAttributeDiff ) ) { return true ; } final org . locationtech . geogig . plumbing . diff . GeometryAttributeDiff gad = ( ( org . locationtech . geogig . plumbing . diff . GeometryAttributeDiff ) ( ad ) ) ; final org . locationtech . geogig . plumbing . diff . TYPE myType = getType ( ) ; final org . locationtech . geogig . plumbing . diff . TYPE otherType = ad . getType ( ) ; if ( ( ( TYPE . NO_CHANGE ) == myType ) || ( ( TYPE . NO_CHANGE ) == otherType ) ) { return false ; } if ( ( ( TYPE . REMOVED ) == myType ) && ( ( TYPE . REMOVED ) == otherType ) ) { return false ; } if ( ( ( TYPE . MODIFIED ) == myType ) && ( ( TYPE . MODIFIED ) == otherType ) ) { if ( gad . diff . equals ( diff ) ) { return false ; } else { return true ; } } if ( ( ( TYPE . ADDED ) == myType ) && ( ( TYPE . ADDED ) == otherType ) ) { return ! ( gad . newGeometry . equalsExact ( newGeometry ) ) ; } return true ; }
org . junit . Assert . assertFalse ( diff . conflicts ( diff2 ) )
testConnectionAfterSendingRequest ( ) { initPorts ( ) ; exportServices ( server ( ) . getServer ( ) , DifferentServices . CALCULATOR_SERVICE ) ; @ com . devexperts . rmi . test . SuppressWarnings ( "unchecked" ) com . devexperts . rmi . test . RMIRequest < java . lang . Double > sum = clientPort . createRequest ( DifferentServices . CalculatorService . PLUS , 12.1321 , 352.561 ) ; sum . send ( ) ; try { java . lang . Thread . sleep ( 300 ) ; } catch ( java . lang . InterruptedException e ) { org . junit . Assert . fail ( e . getMessage ( ) ) ; } connectDefault ( 43 ) ; try { "<AssertPlaceHolder>" ; } catch ( com . devexperts . rmi . test . RMIException e ) { org . junit . Assert . fail ( e . getMessage ( ) ) ; } } getBlocking ( ) { synchronized ( requestLock ) { while ( ! ( isCompleted ( ) ) ) { try { requestLock . wait ( ) ; } catch ( java . lang . InterruptedException e ) { cancel ( RMICancelType . ABORT_RUNNING ) ; java . lang . Thread . currentThread ( ) . interrupt ( ) ; } } switch ( getState ( ) ) { case SUCCEEDED : return getResultImpl ( ) ; case FAILED : throw getException ( ) ; default : throw new java . lang . AssertionError ( "Final<sp>state<sp>was<sp>expected" ) ; } } }
org . junit . Assert . assertEquals ( sum . getBlocking ( ) , ( ( java . lang . Double ) ( 12.1321 + 352.561 ) ) )
testWithWrongAttachment ( ) { eu . europa . esig . dss . DSSDocument doc = new eu . europa . esig . dss . FileDocument ( "src/test/resources/validation/sig_bundle.signed_detached.xml" ) ; eu . europa . esig . dss . validation . SignedDocumentValidator validator = eu . europa . esig . dss . validation . SignedDocumentValidator . fromDocument ( doc ) ; validator . setDetachedContents ( java . util . Arrays . < eu . europa . esig . dss . DSSDocument > asList ( new eu . europa . esig . dss . InMemoryDocument ( new byte [ ] { 1 , 2 , 3 } ) ) ) ; validator . setCertificateVerifier ( new eu . europa . esig . dss . validation . CommonCertificateVerifier ( ) ) ; eu . europa . esig . dss . validation . reports . Reports reports = validator . validateDocument ( ) ; "<AssertPlaceHolder>" ; } setCertificateVerifier ( eu . europa . esig . dss . validation . CertificateVerifier ) { this . certificateVerifier = certificateVerifier ; }
org . junit . Assert . assertNotNull ( reports )
getNameWithoutVersion ( ) { java . lang . String nameWithoutVersion = "myNewCoolComponent" ; java . lang . String name = org . eclipse . winery . common . version . VersionUtils . getNameWithoutVersion ( getComponentName ( nameWithoutVersion , "2" , 2 , 1 ) ) ; "<AssertPlaceHolder>" ; } getComponentName ( java . lang . String , java . lang . String , int , int ) { return ( ( ( ( ( ( ( name + ( org . eclipse . winery . common . version . WineryVersion . WINERY_NAME_FROM_VERSION_SEPARATOR ) ) + componentVersion ) + ( ( componentVersion . length ( ) ) > 0 ? org . eclipse . winery . common . version . WineryVersion . WINERY_VERSION_SEPARATOR : "" ) ) + ( org . eclipse . winery . common . version . WineryVersion . WINERY_VERSION_PREFIX ) ) + wineryVersion ) + ( org . eclipse . winery . common . version . WineryVersion . WINERY_VERSION_SEPARATOR ) ) + ( org . eclipse . winery . common . version . WineryVersion . WINERY_WIP_VERSION_PREFIX ) ) + wipVersion ; }
org . junit . Assert . assertEquals ( nameWithoutVersion , name )
testOudVoorbeeld1 ( ) { final java . util . List < nl . bzk . migratiebrp . conversie . model . lo3 . Lo3Stapel < nl . bzk . migratiebrp . conversie . model . lo3 . autorisatie . Lo3AfnemersindicatieInhoud > > afnemersIndicatieStapels = new java . util . ArrayList ( ) ; afnemersIndicatieStapels . add ( nl . bzk . migratiebrp . conversie . model . proces . brpnaarlo3 . Lo3StapelHelper . lo3Stapel ( maakLo3Categorie ( "000007" , 19920101 , 0 , 0 ) ) ) ; afnemersIndicatieStapels . add ( nl . bzk . migratiebrp . conversie . model . proces . brpnaarlo3 . Lo3StapelHelper . lo3Stapel ( maakLo3Categorie ( null , 19960101 , 1 , 0 ) , maakLo3Categorie ( "000008" , 19920601 , 1 , 1 ) ) ) ; afnemersIndicatieStapels . add ( nl . bzk . migratiebrp . conversie . model . proces . brpnaarlo3 . Lo3StapelHelper . lo3Stapel ( maakLo3Categorie ( "000009" , 19920501 , 2 , 0 ) ) ) ; final nl . bzk . migratiebrp . conversie . model . brp . autorisatie . BrpAfnemersindicaties resultaat = test ( "OUD-VOORBEELD-1" , new nl . bzk . migratiebrp . conversie . model . lo3 . autorisatie . Lo3Afnemersindicatie ( "9734838049" , afnemersIndicatieStapels ) ) ; "<AssertPlaceHolder>" ; } getAfnemersindicaties ( ) { return afnemersindicatiesAntwoordType . getAfnemersindicatie ( ) ; }
org . junit . Assert . assertEquals ( 3 , resultaat . getAfnemersindicaties ( ) . size ( ) )
testProviderClass ( ) { org . jboss . resteasy . spi . ResteasyProviderFactory factory = new org . jboss . resteasy . core . providerfactory . ResteasyProviderFactoryImpl ( ) ; factory . register ( org . jboss . resteasy . test . providers . HeaderDelegateTest . TestHeaderDelegate . class ) ; javax . ws . rs . ext . RuntimeDelegate . HeaderDelegate < ? > delegate = factory . getHeaderDelegate ( org . jboss . resteasy . test . providers . HeaderDelegateTest . TestHeader . class ) ; "<AssertPlaceHolder>" ; } getHeaderDelegate ( java . lang . Class ) { org . jboss . resteasy . core . providerfactory . HeaderDelegate delegate = null ; if ( ( javax . ws . rs . ext . RuntimeDelegate . getInstance ( ) ) instanceof org . jboss . resteasy . spi . ResteasyProviderFactory ) { delegate = createHeaderDelegate ( aClass ) ; } else { delegate = javax . ws . rs . ext . RuntimeDelegate . getInstance ( ) . createHeaderDelegate ( aClass ) ; } return delegate ; }
org . junit . Assert . assertTrue ( ( delegate instanceof org . jboss . resteasy . test . providers . HeaderDelegateTest . TestHeaderDelegate ) )
testUpdateAllocations ( ) { client . createExperiment ( "exp" ) . addTreatment ( "control" ) . apply ( ) ; client . updateAllocations ( "exp" ) . allocate ( "control" , 100 ) . apply ( ) ; "<AssertPlaceHolder>" ; } getAllocations ( java . lang . String ) { return resource ( io . rtr . alchemy . client . AlchemyClient . ENDPOINT_ALLOCATIONS , com . google . common . collect . ImmutableMap . of ( io . rtr . alchemy . client . AlchemyClient . PARAM_EXPERIMENT_NAME , experimentName ) ) . get ( io . rtr . alchemy . client . AlchemyClient . list ( io . rtr . alchemy . dto . models . AllocationDto . class ) ) ; }
org . junit . Assert . assertEquals ( 1 , client . getAllocations ( "exp" ) . size ( ) )
testZeroSizedIteration ( ) { org . eclipse . january . dataset . IntegerDataset ind = org . eclipse . january . dataset . DatasetFactory . zeros ( org . eclipse . january . dataset . IntegerDataset . class , 0 ) ; org . eclipse . january . dataset . IntegerIterator it = new org . eclipse . january . dataset . IntegerIterator ( ind , 100 ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { int j = endrank ; for ( ; j >= 0 ; j -- ) { ( pos [ j ] ) ++ ; if ( ( pos [ j ] ) >= ( shape [ j ] ) ) { pos [ j ] = 0 ; } else { break ; } } if ( ( j == ( - 1 ) ) && ( ( endrank ) >= 0 ) ) { return false ; } index += istep ; return ( index ) < ( imax ) ; }
org . junit . Assert . assertFalse ( it . hasNext ( ) )
getMessageFromReceiverLinkCallsAuth ( ) { final java . lang . String linkName = "linkName" ; final tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsSessionManager amqpsSessionManager = new tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsSessionManager ( mockDeviceClientConfig , mockScheduledExecutorService ) ; tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . Deencapsulation . setField ( amqpsSessionManager , "session" , mockSession ) ; tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . Deencapsulation . setField ( amqpsSessionManager , "amqpsDeviceAuthentication" , mockAmqpsDeviceAuthenticationCBS ) ; new tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . Expectations ( ) { { mockAmqpsDeviceAuthenticationCBS . operationLinksOpened ( ) ; result = false ; tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . Deencapsulation . invoke ( mockAmqpsDeviceAuthenticationCBS , "getMessageFromReceiverLink" , linkName ) ; result = mockAmqpsMessage ; } } ; tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsMessage amqpsMessage = tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . Deencapsulation . invoke ( amqpsSessionManager , "getMessageFromReceiverLink" , linkName ) ; "<AssertPlaceHolder>" ; } operationLinksOpened ( ) { java . lang . Boolean allLinksOpened = true ; for ( Map . Entry < com . microsoft . azure . sdk . iot . device . MessageType . MessageType , com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsDeviceOperations > entry : amqpsDeviceOperationsMap . entrySet ( ) ) { if ( ! ( entry . getValue ( ) . operationLinksOpened ( ) ) ) { allLinksOpened = false ; break ; } } return allLinksOpened ; }
org . junit . Assert . assertEquals ( mockAmqpsMessage , amqpsMessage )
importsViaMBean ( ) { javax . management . remote . JMXConnector connector = null ; try { connector = this . getJMXConnector ( ) ; javax . management . MBeanServerConnection connection = connector . getMBeanServerConnection ( ) ; javax . management . ObjectName name = new javax . management . ObjectName ( "org.apache.karaf:type=package,name=root" ) ; javax . management . openmbean . TabularData imports = ( ( javax . management . openmbean . TabularData ) ( connection . getAttribute ( name , "Imports" ) ) ) ; "<AssertPlaceHolder>" ; } finally { close ( connector ) ; } } size ( ) { int size = 0 ; if ( ( end ) < ( start ) ) { size = ( ( maxElements ) - ( start ) ) + ( end ) ; } else if ( ( end ) == ( start ) ) { size = ( full ) ? maxElements : 0 ; } else { size = ( end ) - ( start ) ; } return size ; }
org . junit . Assert . assertTrue ( ( ( imports . size ( ) ) > 0 ) )
shouldReplaceOnConsistentWithOnSameVbucketLargerSeqno ( ) { com . couchbase . client . core . message . kv . MutationToken token1 = new com . couchbase . client . core . message . kv . MutationToken ( 1 , 1234 , 1000 , "bucket1" ) ; com . couchbase . client . core . message . kv . MutationToken token2 = new com . couchbase . client . core . message . kv . MutationToken ( 1 , 123 , 1001 , "bucket1" ) ; com . couchbase . client . java . document . JsonDocument doc1 = com . couchbase . client . java . document . JsonDocument . create ( "id" , 0 , com . couchbase . client . java . document . json . JsonObject . empty ( ) , 0 , token1 ) ; com . couchbase . client . java . document . JsonDocument doc2 = com . couchbase . client . java . document . JsonDocument . create ( "id" , 0 , com . couchbase . client . java . document . json . JsonObject . empty ( ) , 0 , token2 ) ; com . couchbase . client . java . search . SearchQuery p = new com . couchbase . client . java . search . SearchQuery ( "foo" , null ) . searchConsistency ( SearchConsistency . NOT_BOUNDED ) . consistentWith ( doc1 , doc2 ) ; com . couchbase . client . java . document . json . JsonObject result = com . couchbase . client . java . document . json . JsonObject . empty ( ) ; p . injectParams ( result ) ; com . couchbase . client . java . document . json . JsonObject expectedVector = com . couchbase . client . java . document . json . JsonObject . create ( ) . put ( "foo" , com . couchbase . client . java . document . json . JsonObject . create ( ) . put ( "1/123" , 1001L ) ) ; com . couchbase . client . java . document . json . JsonObject expected = com . couchbase . client . java . document . json . JsonObject . create ( ) . put ( "ctl" , com . couchbase . client . java . document . json . JsonObject . create ( ) . put ( "consistency" , com . couchbase . client . java . document . json . JsonObject . create ( ) . put ( "level" , "at_plus" ) . put ( "vectors" , expectedVector ) ) ) ; "<AssertPlaceHolder>" ; } put ( java . lang . String , V ) { if ( key == null ) { throw new java . lang . NullPointerException ( "Unsupported<sp>null<sp>key" ) ; } if ( ! ( com . couchbase . client . java . document . json . JsonValue . checkType ( value ) ) ) { throw new java . lang . IllegalArgumentException ( "Unsupported<sp>value<sp>type." ) ; } for ( int i = 0 ; i < ( com . couchbase . client . java . datastructures . collections . CouchbaseMap . MAX_OPTIMISTIC_LOCKING_ATTEMPTS ) ; i ++ ) { try { com . couchbase . client . java . subdoc . DocumentFragment < com . couchbase . client . core . message . kv . subdoc . multi . Lookup > current = bucket . lookupIn ( id ) . get ( key ) . execute ( ) ; long returnCas = current . cas ( ) ; java . lang . Object result = null ; if ( current . exists ( key ) ) { result = current . content ( key ) ; } bucket . mutateIn ( id ) . upsert ( key , value , false ) . withCas ( returnCas ) . execute ( ) ; return ( ( V ) ( result ) ) ; } catch ( com . couchbase . client . java . error . CASMismatchException ex ) { } } throw new java . util . ConcurrentModificationException ( ( ( "Couldn't<sp>perform<sp>put<sp>in<sp>less<sp>than<sp>" + ( com . couchbase . client . java . datastructures . collections . CouchbaseMap . MAX_OPTIMISTIC_LOCKING_ATTEMPTS ) ) + "<sp>iterations" ) ) ; }
org . junit . Assert . assertEquals ( expected , result )
testUsesConfig ( ) { com . spotify . apollo . core . Service service = com . spotify . apollo . core . ServiceImpl . builder ( "test" ) . build ( ) ; com . typesafe . config . Config config = com . typesafe . config . ConfigFactory . empty ( ) . withValue ( "this.key" , com . typesafe . config . ConfigValueFactory . fromAnyRef ( "value<sp>for<sp>this.key" ) ) ; try ( com . spotify . apollo . core . Service . Instance instance = service . start ( new java . lang . String [ ] { } , config ) ) { "<AssertPlaceHolder>" ; } } getConfig ( ) { return resolve ( com . typesafe . config . Config . class ) ; }
org . junit . Assert . assertThat ( instance . getConfig ( ) . getString ( "this.key" ) , org . hamcrest . Matchers . is ( "value<sp>for<sp>this.key" ) )
test ( ) { org . pentaho . commons . util . repository . CreateFolderRequest request = new org . pentaho . commons . util . repository . CreateFolderRequest ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( request )
testText_null ( ) { hyperlink . setText ( null ) ; "<AssertPlaceHolder>" ; } getText ( ) { checkWidget ( ) ; return getText ( 0 ) ; }
org . junit . Assert . assertEquals ( "" , hyperlink . getText ( ) )
shouldBeTrueWhenTrueOrFalse ( ) { final org . pitest . functional . predicate . Or < java . lang . Object > testee = or ( ( i ) -> true , org . pitest . functional . predicate . False . instance ( ) ) ; "<AssertPlaceHolder>" ; } test ( java . lang . String ) { return this . includedClassPathElement . contains ( a ) ; }
org . junit . Assert . assertTrue ( testee . test ( null ) )
testAddDeleteSequenceEmptyNumberArray ( ) { org . neo4j . kernel . impl . store . DynamicArrayStore store = createDynamicArrayStore ( ) ; byte [ ] emptyToWrite = createBytes ( 0 ) ; long blockId = create ( store , emptyToWrite ) ; store . getRecords ( blockId , org . neo4j . kernel . impl . store . NORMAL ) ; byte [ ] bytes = ( ( byte [ ] ) ( store . getArrayFor ( store . getRecords ( blockId , org . neo4j . kernel . impl . store . NORMAL ) ) ) ) ; "<AssertPlaceHolder>" ; java . util . Collection < org . neo4j . kernel . impl . store . record . DynamicRecord > records = store . getRecords ( blockId , org . neo4j . kernel . impl . store . NORMAL ) ; for ( org . neo4j . kernel . impl . store . record . DynamicRecord record : records ) { record . setInUse ( false ) ; store . updateRecord ( record ) ; } } getRecords ( long , org . neo4j . kernel . impl . store . record . RecordLoad ) { if ( Record . NULL_REFERENCE . is ( firstId ) ) { return java . util . Collections . emptyList ( ) ; } java . util . List < RECORD > records = new java . util . ArrayList ( ) ; long id = firstId ; try ( org . neo4j . io . pagecache . PageCursor cursor = openPageCursorForReading ( firstId ) ) { RECORD record ; do { record = newRecord ( ) ; getRecordByCursor ( id , record , mode , cursor ) ; records . add ( record ) ; id = getNextRecordReference ( record ) ; } while ( ! ( Record . NULL_REFERENCE . is ( id ) ) ) ; } return records ; }
org . junit . Assert . assertEquals ( 0 , bytes . length )
pay_notify ( ) { com . alibaba . fastjson . JSONObject notify = new com . alibaba . fastjson . JSONObject ( ) ; notify . put ( "amount" , "0b5b42d30f015b46316eff00000004" 3 ) ; notify . put ( "0b5b42d30f015b46316eff00000004" 0 , "0b5b42d30f015b46316eff00000004" 6 ) ; notify . put ( "123" 1 , "0b5b42d30f015b46316eff00000004" 7 ) ; notify . put ( "0b5b42d30f015b46316eff00000004" 2 , "0b5b42d30f015b46316eff00000004" ) ; notify . put ( "goodsId" , "" ) ; notify . put ( "groupId" , "" ) ; notify . put ( "merPriv" , "0b5b42d30f015b46316eff00000004" 5 ) ; notify . put ( "123" 2 , "123" ) ; notify . put ( "sign" , "123" 0 ) ; notify . put ( "0b5b42d30f015b46316eff00000004" 4 , "0" ) ; notify . put ( "0b5b42d30f015b46316eff00000004" 8 , "0b5b42d30f015b46316eff00000004" 1 ) ; com . li3huo . sdk . domain . Voucher voucher = new com . li3huo . sdk . domain . Voucher ( ) ; voucher . channelId = com . li3huo . sdk . ChannelCode . feiliu ; voucher . appid = game_id ; v . check_pay_notify ( voucher , getContext ( uri , notify . toJSONString ( ) ) ) ; logger . debug ( ( "0b5b42d30f015b46316eff00000004" 9 + ( voucher . toJSONString ( ) ) ) ) ; "<AssertPlaceHolder>" ; } toJSONString ( ) { return com . alibaba . fastjson . JSON . toJSONString ( this ) ; }
org . junit . Assert . assertTrue ( ( ( voucher . code ) == 0 ) )
testFindByPrimaryKeyExisting ( ) { com . liferay . message . boards . model . MBStatsUser newMBStatsUser = addMBStatsUser ( ) ; com . liferay . message . boards . model . MBStatsUser existingMBStatsUser = _persistence . findByPrimaryKey ( newMBStatsUser . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _amImageEntryId ; }
org . junit . Assert . assertEquals ( existingMBStatsUser , newMBStatsUser )
testNodeList ( ) { try ( com . syncleus . ferma . tx . Tx tx = tx ( ) ) { com . gentics . mesh . core . rest . schema . SchemaModel folderSchema = schemaContainer ( "folder" ) . getLatestVersion ( ) . getSchema ( ) ; com . gentics . mesh . core . rest . schema . SchemaModel contentSchema = schemaContainer ( "content" ) . getLatestVersion ( ) . getSchema ( ) ; com . gentics . mesh . core . rest . node . NodeResponse folder = new com . gentics . mesh . core . rest . node . NodeResponse ( ) ; folder . setSchema ( new com . gentics . mesh . core . rest . schema . impl . SchemaReferenceImpl ( ) . setName ( folderSchema . getName ( ) ) ) ; folder . getFields ( ) . put ( "name" , com . gentics . mesh . FieldUtil . createStringField ( "folder<sp>name" ) ) ; com . gentics . mesh . core . rest . node . NodeResponse content = new com . gentics . mesh . core . rest . node . NodeResponse ( ) ; content . setSchema ( new com . gentics . mesh . core . rest . schema . impl . SchemaReferenceImpl ( ) . setName ( contentSchema . getName ( ) ) ) ; content . getFields ( ) . put ( "name" , com . gentics . mesh . FieldUtil . createStringField ( "content<sp>name" ) ) ; content . getFields ( ) . put ( "content" , com . gentics . mesh . FieldUtil . createStringField ( "some<sp>content" ) ) ; com . gentics . mesh . core . rest . schema . SchemaStorage storage = new com . gentics . mesh . rest . ClientSchemaStorage ( ) ; storage . addSchema ( folderSchema ) ; storage . addSchema ( contentSchema ) ; com . gentics . mesh . core . rest . node . NodeListResponse list = new com . gentics . mesh . core . rest . node . NodeListResponse ( ) ; list . getData ( ) . add ( folder ) ; list . getData ( ) . add ( content ) ; java . lang . String json = list . toJson ( ) ; com . gentics . mesh . core . rest . node . NodeListResponse deserializedList = com . gentics . mesh . json . JsonUtil . readValue ( json , com . gentics . mesh . core . rest . node . NodeListResponse . class ) ; "<AssertPlaceHolder>" ; } } readValue ( java . lang . String , java . lang . Class ) { try { return com . gentics . mesh . json . JsonUtil . defaultMapper . readValue ( content , valueType ) ; } catch ( com . fasterxml . jackson . databind . JsonMappingException e ) { com . gentics . mesh . json . JsonUtil . log . error ( ( ( ( ( "Could<sp>not<sp>deserialize<sp>json<sp>{" + content ) + "}<sp>into<sp>{" ) + ( valueType . getName ( ) ) ) + "}" ) , e ) ; java . lang . String line = "unknown" ; java . lang . String column = "unknown" ; if ( ( e . getLocation ( ) ) != null ) { line = java . lang . String . valueOf ( e . getLocation ( ) . getLineNr ( ) ) ; column = java . lang . String . valueOf ( e . getLocation ( ) . getColumnNr ( ) ) ; } java . lang . String field = "" ; if ( ( ( e . getPath ( ) ) != null ) && ( ( e . getPath ( ) . size ( ) ) >= 1 ) ) { field = e . getPath ( ) . get ( 0 ) . getFieldName ( ) ; } throw new com . gentics . mesh . core . rest . error . GenericRestException ( io . netty . handler . codec . http . HttpResponseStatus . BAD_REQUEST , "error_json_structure_invalid" , line , column , field , e . getOriginalMessage ( ) ) ; } catch ( com . fasterxml . jackson . core . JsonParseException e ) { java . lang . String msg = e . getOriginalMessage ( ) ; java . lang . String line = "unknown" ; java . lang . String column = "unknown" ; if ( ( e . getLocation ( ) ) != null ) { line = java . lang . String . valueOf ( e . getLocation ( ) . getLineNr ( ) ) ; column = java . lang . String . valueOf ( e . getLocation ( ) . getColumnNr ( ) ) ; } throw new com . gentics . mesh . core . rest . error . GenericRestException ( io . netty . handler . codec . http . HttpResponseStatus . BAD_REQUEST , "error_json_malformed" , line , column , msg ) ; } catch ( java . lang . Exception e ) { throw new com . gentics . mesh . core . rest . error . GenericRestException ( io . netty . handler . codec . http . HttpResponseStatus . BAD_REQUEST , "error_json_parse" , e ) ; } }
org . junit . Assert . assertNotNull ( deserializedList )
validateEmpty ( ) { "<AssertPlaceHolder>" ; } validator ( ) { return null ; }
org . junit . Assert . assertFalse ( mapping . validator ( ) . validate ( "" ) )
testGetFileNames_withoutCompletedFiles_forSingle ( ) { dialog = new org . eclipse . swt . widgets . FileDialog_Test . TestFileDialog ( shell , org . eclipse . swt . SWT . SINGLE ) ; dialog . open ( callback ) ; completedFileNames = new java . lang . String [ 0 ] ; getOKButton ( ) . notifyListeners ( SWT . Selection , null ) ; java . lang . String [ ] fileNames = dialog . getFileNames ( ) ; "<AssertPlaceHolder>" ; } getFileNames ( ) { if ( ( returnCode ) == ( org . eclipse . swt . SWT . OK ) ) { java . lang . String [ ] completedFileNames = getCompletedFileNames ( ) ; if ( ( isMulti ( ) ) || ( ( completedFileNames . length ) == 0 ) ) { return completedFileNames ; } return new java . lang . String [ ] { completedFileNames [ ( ( completedFileNames . length ) - 1 ) ] } ; } return org . eclipse . swt . widgets . FileDialog . EMPTY_ARRAY ; }
org . junit . Assert . assertArrayEquals ( new java . lang . String [ 0 ] , fileNames )
shouldReturnFieldDefinitionForThreeLevelsDeepPath ( ) { com . qcadoo . model . api . DataDefinition firstBtDataDef = mock ( com . qcadoo . model . api . DataDefinition . class ) ; mockBelongsToField ( "firstBelongsTo" , dataDefinition , firstBtDataDef ) ; com . qcadoo . model . api . DataDefinition secondBtDataDef = mock ( com . qcadoo . model . api . DataDefinition . class ) ; mockBelongsToField ( "secondBelongsTo" , firstBtDataDef , secondBtDataDef ) ; com . qcadoo . model . api . DataDefinition thirdBtDataDef = mock ( com . qcadoo . model . api . DataDefinition . class ) ; mockBelongsToField ( "thirdBelongsTo" , secondBtDataDef , thirdBtDataDef ) ; com . qcadoo . model . api . FieldDefinition fieldDefinition = mockFieldDefinition ( "fieldName" , java . lang . String . class , thirdBtDataDef ) ; java . lang . String field = "firstBelongsTo.secondBelongsTo.thirdBelongsTo.fieldName" ; final com . qcadoo . model . api . FieldDefinition res = com . qcadoo . view . internal . components . grid . GridComponentFilterUtils . getFieldDefinition ( dataDefinition , field ) ; "<AssertPlaceHolder>" ; } getFieldDefinition ( com . qcadoo . model . api . DataDefinition , java . lang . String ) { java . lang . String [ ] path = field . split ( "\\." ) ; for ( int i = 0 ; i < ( path . length ) ; i ++ ) { if ( ( dataDefinition . getField ( path [ i ] ) ) == null ) { return null ; } com . qcadoo . model . api . FieldDefinition fieldDefinition = dataDefinition . getField ( path [ i ] ) ; if ( i < ( ( path . length ) - 1 ) ) { if ( ( fieldDefinition . getType ( ) ) instanceof com . qcadoo . model . api . types . BelongsToType ) { dataDefinition = ( ( com . qcadoo . model . api . types . BelongsToType ) ( fieldDefinition . getType ( ) ) ) . getDataDefinition ( ) ; continue ; } else { return null ; } } return fieldDefinition ; } return null ; }
org . junit . Assert . assertEquals ( fieldDefinition , res )
testLookupStruct ( ) { org . eclipse . tracecompass . ctf . core . event . types . StructDefinition result = fixture . lookupStruct ( org . eclipse . tracecompass . ctf . core . tests . types . VariantDefinitionTest . ENUM_6 ) ; "<AssertPlaceHolder>" ; } lookupStruct ( java . lang . String ) { return fStructs . get ( name ) ; }
org . junit . Assert . assertNull ( result )
testExceptionStripping ( ) { final org . apache . flink . util . FlinkException expectedException = new org . apache . flink . util . FlinkException ( "test<sp>exception" ) ; final java . lang . Throwable strippedException = org . apache . flink . util . ExceptionUtils . stripException ( new java . lang . RuntimeException ( new java . lang . RuntimeException ( expectedException ) ) , org . apache . flink . util . RuntimeException . class ) ; "<AssertPlaceHolder>" ; } equalTo ( org . apache . flink . api . java . functions . KeySelector ) { org . apache . flink . api . common . typeinfo . TypeInformation < K > keyType = org . apache . flink . api . java . typeutils . TypeExtractor . getKeySelectorTypes ( keyExtractor , input2 . getType ( ) ) ; return createCoGroupOperator ( new org . apache . flink . api . common . operators . Keys . SelectorFunctionKeys ( input1 . clean ( keyExtractor ) , input2 . getType ( ) , keyType ) ) ; }
org . junit . Assert . assertThat ( strippedException , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( expectedException ) ) )
deploymentTest ( ) { javax . sql . DataSource ds = ( ( javax . sql . DataSource ) ( ctx . lookup ( "java:jboss/datasources/securityDs" ) ) ) ; java . sql . Connection con = null ; try { con = ds . getConnection ( ) ; "<AssertPlaceHolder>" ; } finally { if ( con != null ) { con . close ( ) ; } } } getConnection ( ) { if ( org . wildfly . security . manager . WildFlySecurityManager . isChecking ( ) ) { return org . wildfly . security . manager . WildFlySecurityManager . doUnchecked ( ( ( java . security . PrivilegedAction < org . jboss . as . security . remoting . RemoteConnection > ) ( ( ) -> org . jboss . as . security . remoting . RemotingContext . getRemoteConnection ( ) ) ) ) ; } else { return org . jboss . as . security . remoting . RemotingContext . getRemoteConnection ( ) ; } }
org . junit . Assert . assertNotNull ( con )
testOnInventoryClickOtherHolderStillAllowed ( ) { when ( island . isAllowed ( org . mockito . Mockito . any ( ) , org . mockito . Mockito . any ( ) ) ) . thenReturn ( false ) ; org . bukkit . inventory . InventoryView view = mock ( org . bukkit . inventory . InventoryView . class ) ; when ( view . getPlayer ( ) ) . thenReturn ( player ) ; org . bukkit . inventory . Inventory inv = mock ( org . bukkit . inventory . Inventory . class ) ; when ( inv . getLocation ( ) ) . thenReturn ( location ) ; when ( inv . getSize ( ) ) . thenReturn ( 9 ) ; org . bukkit . inventory . InventoryHolder holder = mock ( org . bukkit . inventory . InventoryHolder . class ) ; when ( inv . getHolder ( ) ) . thenReturn ( holder ) ; when ( view . getTopInventory ( ) ) . thenReturn ( inv ) ; when ( view . getBottomInventory ( ) ) . thenReturn ( inv ) ; org . bukkit . event . inventory . InventoryType . SlotType slotType = org . bukkit . event . inventory . InventoryType . SlotType . CONTAINER ; org . bukkit . event . inventory . InventoryAction action = org . bukkit . event . inventory . InventoryAction . PICKUP_ONE ; org . bukkit . event . inventory . InventoryClickEvent e = new org . bukkit . event . inventory . InventoryClickEvent ( view , slotType , 0 , org . bukkit . event . inventory . ClickType . LEFT , action ) ; l . onInventoryClick ( e ) ; "<AssertPlaceHolder>" ; } isCancelled ( ) { return cancelled ; }
org . junit . Assert . assertFalse ( e . isCancelled ( ) )
testGetStringValue ( ) { org . wikidata . wdtk . datamodel . helpers . StringValue o1 = org . wikidata . wdtk . datamodel . helpers . Datamodel . makeStringValue ( "foo" ) ; org . wikidata . wdtk . datamodel . helpers . StringValue o2 = factory . getStringValue ( "foo" ) ; "<AssertPlaceHolder>" ; } getStringValue ( java . lang . String ) { return new org . wikidata . wdtk . datamodel . implementation . StringValueImpl ( string ) ; }
org . junit . Assert . assertEquals ( o1 , o2 )
getUser ( ) { com . github . cypher . sdk . User u1 = client . getUser ( "test" ) ; client . getUser ( "some" ) ; com . github . cypher . sdk . User u2 = client . getUser ( "test" ) ; "<AssertPlaceHolder>" ; } getUser ( java . lang . String ) { return userRepository . get ( id ) ; }
org . junit . Assert . assertSame ( u1 , u2 )
testEqualsSameObject ( ) { org . bff . javampd . output . MPDOutput item = new org . bff . javampd . output . MPDOutput ( 1 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == object ) { return true ; } if ( ( object == null ) || ( ( object . getClass ( ) ) != ( this . getClass ( ) ) ) ) { return false ; } if ( ! ( super . equals ( object ) ) ) { return false ; } org . bff . javampd . album . MPDAlbum album = ( ( org . bff . javampd . album . MPDAlbum ) ( object ) ) ; return ( ( ( this . getName ( ) . equals ( album . getName ( ) ) ) && ( this . getGenre ( ) . equals ( album . getGenre ( ) ) ) ) && ( compareArtists ( album ) ) ) && ( compareDates ( album ) ) ; }
org . junit . Assert . assertTrue ( item . equals ( item ) )
testSFBug1014344_1 ( ) { java . lang . String filename_cml = "data/cml/bug1014344-1.cml" ; java . lang . String filename_mol = "data/mdl/bug1014344-1.mol" ; java . io . InputStream ins1 = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( filename_cml ) ; java . io . InputStream ins2 = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( filename_mol ) ; org . openscience . cdk . io . CMLReader reader1 = new org . openscience . cdk . io . CMLReader ( ins1 ) ; org . openscience . cdk . interfaces . IChemFile chemFile = ( ( org . openscience . cdk . interfaces . IChemFile ) ( reader1 . read ( new org . openscience . cdk . ChemFile ( ) ) ) ) ; org . openscience . cdk . interfaces . IChemSequence seq = chemFile . getChemSequence ( 0 ) ; org . openscience . cdk . interfaces . IChemModel model = seq . getChemModel ( 0 ) ; org . openscience . cdk . interfaces . IAtomContainer mol1 = model . getMoleculeSet ( ) . getAtomContainer ( 0 ) ; org . openscience . cdk . io . MDLReader reader2 = new org . openscience . cdk . io . MDLReader ( ins2 ) ; org . openscience . cdk . interfaces . IAtomContainer mol2 = reader2 . read ( new org . openscience . cdk . AtomContainer ( ) ) ; addImplicitHydrogens ( mol1 ) ; addImplicitHydrogens ( mol2 ) ; org . openscience . cdk . smiles . SmilesGenerator sg = new org . openscience . cdk . smiles . SmilesGenerator ( ) ; java . lang . String moleculeSmile1 = sg . create ( mol1 ) ; java . lang . String moleculeSmile2 = sg . create ( mol2 ) ; "<AssertPlaceHolder>" ; } create ( java . lang . String ) { return new org . openscience . cdk . smarts . SmartsPattern ( smarts , null ) ; }
org . junit . Assert . assertEquals ( moleculeSmile1 , moleculeSmile2 )
testAlphaRangeBelowZero ( ) { try { new org . apache . commons . math4 . random . StableRandomGenerator ( rg , ( - 1.0 ) , 0.0 ) ; org . junit . Assert . fail ( "Expected<sp>OutOfRangeException" ) ; } catch ( org . apache . commons . math4 . exception . OutOfRangeException e ) { "<AssertPlaceHolder>" ; } } getArgument ( ) { return argument ; }
org . junit . Assert . assertEquals ( ( - 1.0 ) , e . getArgument ( ) )
testConstructorFromRegistry ( ) { org . dayatang . ioc . tapestry . factory . TapestryInstanceProvider provider2 = new org . dayatang . ioc . tapestry . factory . TapestryInstanceProvider ( createRegistry ( org . dayatang . ioc . tapestry . factory . TapestryModule . class ) ) ; org . dayatang . ioc . test . Service1 service = provider2 . getInstance ( org . dayatang . ioc . test . Service1 . class ) ; "<AssertPlaceHolder>" ; provider2 . shutdown ( ) ; } name ( ) { return "MyService1" ; }
org . junit . Assert . assertEquals ( "MyService1" , service . name ( ) )
removeCollaboratorWithMissingObject ( ) { when ( this . entityDoc . getXObject ( org . phenotips . data . permissions . internal . DefaultEntityAccessManagerTest . COLLABORATOR_CLASS , org . phenotips . data . permissions . internal . DefaultEntityAccessManagerTest . COLLABORATOR_LABEL , org . phenotips . data . permissions . internal . DefaultEntityAccessManagerTest . COLLABORATOR_STR , false ) ) . thenReturn ( null ) ; org . phenotips . data . permissions . Collaborator collaborator = new org . phenotips . data . permissions . internal . DefaultCollaborator ( org . phenotips . data . permissions . internal . DefaultEntityAccessManagerTest . COLLABORATOR , org . phenotips . data . permissions . internal . DefaultEntityAccessManagerTest . EDIT_ACCESS , this . helper ) ; "<AssertPlaceHolder>" ; verify ( this . entityDoc , never ( ) ) . removeXObject ( any ( com . xpn . xwiki . objects . BaseObject . class ) ) ; verify ( this . xwiki , never ( ) ) . saveDocument ( this . entityDoc , ( "Removed<sp>collaborator:<sp>" + ( org . phenotips . data . permissions . internal . DefaultEntityAccessManagerTest . COLLABORATOR_STR ) ) , true , this . context ) ; } removeCollaborator ( org . phenotips . entities . PrimaryEntity , org . phenotips . data . permissions . Collaborator ) { return removeCollaborator ( entity , collaborator , true ) ; }
org . junit . Assert . assertFalse ( this . component . removeCollaborator ( this . entity , collaborator ) )
testMul ( ) { org . nd4j . linalg . api . ops . executioner . OpExecutioner opExecutioner = org . nd4j . linalg . factory . Nd4j . getExecutioner ( ) ; org . nd4j . linalg . api . ndarray . INDArray x = org . nd4j . linalg . factory . Nd4j . ones ( 5 ) ; org . nd4j . linalg . api . ndarray . INDArray xDup = x . dup ( ) ; org . nd4j . linalg . api . ndarray . INDArray solution = org . nd4j . linalg . factory . Nd4j . valueArrayOf ( 5 , 1.0 ) ; opExecutioner . exec ( new org . nd4j . linalg . api . ops . impl . transforms . pairwise . arithmetic . OldMulOp ( x , xDup , x ) ) ; "<AssertPlaceHolder>" ; } exec ( java . lang . Class , java . lang . String , java . lang . String [ ] ) { java . lang . String javaHome = java . lang . System . getProperty ( "java.home" ) ; java . lang . String javaBin = ( ( ( javaHome + ( java . io . File . separator ) ) + "bin" ) + ( java . io . File . separator ) ) + "java" ; java . lang . String classpath = java . lang . System . getProperty ( "java.class.path" ) ; java . lang . String className = klass . getCanonicalName ( ) ; if ( ( args == null ) || ( ( args . length ) < 1 ) ) { try { return new org . zeroturnaround . exec . ProcessExecutor ( ) . command ( javaBin , "-cp" , classpath , className ) . readOutput ( true ) . redirectOutput ( System . out ) . destroyOnExit ( ) . redirectError ( System . err ) . execute ( ) . getExitValue ( ) ; } catch ( java . util . concurrent . TimeoutException e ) { e . printStackTrace ( ) ; } } else { java . util . List < java . lang . String > args2 = new java . util . ArrayList ( java . util . Arrays . asList ( javaBin , "-cp" , classpath , className , "-md" , mediaDriverDirectory ) ) ; args2 . addAll ( java . util . Arrays . asList ( args ) ) ; try { new org . zeroturnaround . exec . ProcessExecutor ( ) . command ( args2 ) . destroyOnExit ( ) . readOutput ( true ) . redirectOutput ( System . out ) . redirectError ( System . err ) . execute ( ) . getExitValue ( ) ; } catch ( java . util . concurrent . TimeoutException e ) { e . printStackTrace ( ) ; } } return 1 ; }
org . junit . Assert . assertEquals ( solution , x )
shouldHaveNextFromCache ( ) { final org . apache . kafka . streams . state . internals . MergedSortedCacheWindowStoreKeyValueIterator mergeIterator = createIterator ( java . util . Collections . emptyIterator ( ) , cacheKvs ) ; "<AssertPlaceHolder>" ; } hasNext ( ) { return false ; }
org . junit . Assert . assertTrue ( mergeIterator . hasNext ( ) )
testStatelessLocalFromRemote ( javax . naming . InitialContext ) { org . jboss . as . test . multinode . remotecall . StatefulRemote bean = ( ( org . jboss . as . test . multinode . remotecall . StatefulRemote ) ( ctx . lookup ( ( ( ( "java:module/" + ( org . jboss . as . test . multinode . remotecall . StatefulBean . class . getSimpleName ( ) ) ) + "!" ) + ( org . jboss . as . test . multinode . remotecall . StatefulRemote . class . getName ( ) ) ) ) ) ) ; "<AssertPlaceHolder>" ; try { bean . localCall ( ) ; org . junit . Assert . fail ( "should<sp>not<sp>be<sp>allowed<sp>to<sp>call<sp>local<sp>interface<sp>remotely" ) ; } catch ( javax . ejb . EJBException e ) { } catch ( java . lang . Exception ee ) { if ( ! ( ( ee . getCause ( ) ) instanceof javax . ejb . EJBException ) ) { org . junit . Assert . fail ( ( "should<sp>be<sp>" + ( javax . ejb . EJBException . class . getName ( ) ) ) ) ; } } } getName ( ) { return "bitset" ; }
org . junit . Assert . assertNotNull ( bean )
checkpointInfo ( ) { com . google . common . collect . ImmutableMap < java . lang . String , java . lang . String > props = com . google . common . collect . ImmutableMap . of ( "one" , "1" , "two" , "2" , "three" , "2" ) ; java . lang . String cp = store . checkpoint ( Long . MAX_VALUE , props ) ; "<AssertPlaceHolder>" ; } checkpointInfo ( java . lang . String ) { org . apache . jackrabbit . oak . plugins . memory . MemoryNodeStore . Checkpoint cp = checkpoints . get ( checkNotNull ( checkpoint ) ) ; if ( cp == null ) { return java . util . Collections . emptyMap ( ) ; } else { return cp . getProperties ( ) ; } }
org . junit . Assert . assertEquals ( props , store . checkpointInfo ( cp ) )
shouldMutateASingleVariableSolutionWithSameLowerAndUpperBoundsReturnTheBoundValue ( ) { @ org . uma . jmetal . operator . impl . mutation . SuppressWarnings ( "unchecked" ) org . uma . jmetal . util . pseudorandom . RandomGenerator < java . lang . Double > randomGenerator = mock ( org . uma . jmetal . util . pseudorandom . RandomGenerator . class ) ; double mutationProbability = 0.1 ; double distributionIndex = 20.0 ; org . mockito . Mockito . when ( randomGenerator . getRandomValue ( ) ) . thenReturn ( 0.005 , 0.1 ) ; org . uma . jmetal . operator . impl . mutation . IntegerPolynomialMutation mutation = new org . uma . jmetal . operator . impl . mutation . IntegerPolynomialMutation ( mutationProbability , distributionIndex ) ; org . uma . jmetal . operator . impl . mutation . IntegerPolynomialMutationTest . MockIntegerProblem problem = new org . uma . jmetal . operator . impl . mutation . IntegerPolynomialMutationTest . MockIntegerProblem ( 1 ) ; org . springframework . test . util . ReflectionTestUtils . setField ( problem , "lowerLimit" , java . util . Arrays . asList ( new java . lang . Integer [ ] { 1 } ) ) ; org . springframework . test . util . ReflectionTestUtils . setField ( problem , "upperLimit" , java . util . Arrays . asList ( new java . lang . Integer [ ] { 1 } ) ) ; org . uma . jmetal . solution . IntegerSolution solution = problem . createSolution ( ) ; org . springframework . test . util . ReflectionTestUtils . setField ( mutation , "randomGenerator" , randomGenerator ) ; mutation . execute ( solution ) ; "<AssertPlaceHolder>" ; } getVariableValue ( int ) { return null ; }
org . junit . Assert . assertEquals ( 1 , ( ( long ) ( solution . getVariableValue ( 0 ) ) ) )
testMultithreadMultiPartition ( ) { com . jolbox . bonecp . CommonTestUtils . logTestInfo ( "Test<sp>multiple<sp>threads<sp>hitting<sp>a<sp>multiple<sp>partitions<sp>concurrently" ) ; config . setAcquireIncrement ( 5 ) ; config . setMinConnectionsPerPartition ( 10 ) ; config . setMaxConnectionsPerPartition ( 25 ) ; config . setPartitionCount ( 5 ) ; config . setReleaseHelperThreads ( 0 ) ; config . setDisableConnectionTracking ( true ) ; com . jolbox . bonecp . BoneCPDataSource dsb = new com . jolbox . bonecp . BoneCPDataSource ( config ) ; dsb . setDriverClass ( "com.jolbox.bonecp.MockJDBCDriver" ) ; com . jolbox . bonecp . CommonTestUtils . startThreadTest ( 100 , 1000 , dsb , 0 , false ) ; "<AssertPlaceHolder>" ; dsb . close ( ) ; com . jolbox . bonecp . CommonTestUtils . logPass ( ) ; } getTotalLeased ( ) { return ( getPool ( ) ) == null ? 0 : getPool ( ) . getTotalLeased ( ) ; }
org . junit . Assert . assertEquals ( 0 , dsb . getTotalLeased ( ) )
test ( ) { "<AssertPlaceHolder>" ; org . springframework . jms . core . JmsTemplate template = testContext . getBean ( org . springframework . jms . core . JmsTemplate . class ) ; javax . jms . Destination archiefQueue = testContext . getBean ( "archiefQueue" , javax . jms . Destination . class ) ; for ( int i = 0 ; i < 5000 ; i ++ ) { if ( ( i % 100 ) == 0 ) { System . out . println ( ( "Message:<sp>" + i ) ) ; } final java . lang . String testMessage = createTestMessage ( i ) ; template . send ( archiefQueue , new org . springframework . jms . core . MessageCreator ( ) { @ nl . bzk . migratiebrp . tools . brp . routering . Override public javax . jms . Message createMessage ( javax . jms . Session session ) throws javax . jms . JMSException { return session . createTextMessage ( testMessage ) ; } } ) ; } } getContext ( ) { return nl . bzk . migratiebrp . tools . brp . routering . Main . context ; }
org . junit . Assert . assertNotNull ( nl . bzk . migratiebrp . tools . brp . routering . Main . getContext ( ) )
testGetType ( ) { org . apache . ambari . view . UnsupportedPropertyException exception = new org . apache . ambari . view . UnsupportedPropertyException ( "type" , java . util . Collections . singleton ( "p1" ) ) ; "<AssertPlaceHolder>" ; } getType ( ) { return TargetType . ALERT_SCRIPT . name ( ) ; }
org . junit . Assert . assertEquals ( "type" , exception . getType ( ) )
testSetArray ( ) { final org . scijava . util . FloatArray array = new org . scijava . util . FloatArray ( ) ; final float [ ] raw = new float [ ] { 1 , 2 , 3 , 5 , 8 , 13 , 21 } ; array . setArray ( raw ) ; "<AssertPlaceHolder>" ; } getArray ( ) { return array ; }
org . junit . Assert . assertSame ( raw , array . getArray ( ) )
simple3Layers ( ) { final org . kie . workbench . common . stunner . core . graph . processing . layout . sugiyama . LayeredGraph graph = new org . kie . workbench . common . stunner . core . graph . processing . layout . sugiyama . LayeredGraph ( ) ; graph . addEdge ( "A" , "B" ) ; graph . addEdge ( "A" , "C" ) ; graph . addEdge ( "B" , "F" ) ; graph . addEdge ( "C" , "E" ) ; graph . addEdge ( "C" , "G" ) ; graph . addEdge ( "C" , "H" ) ; graph . addEdge ( "D" , "F" ) ; final org . kie . workbench . common . stunner . core . graph . processing . layout . sugiyama . step02 . LongestPathVertexLayerer layerer = new org . kie . workbench . common . stunner . core . graph . processing . layout . sugiyama . step02 . LongestPathVertexLayerer ( ) ; layerer . createLayers ( graph ) ; final java . util . List < org . kie . workbench . common . stunner . core . graph . processing . layout . sugiyama . GraphLayer > result = graph . getLayers ( ) ; "<AssertPlaceHolder>" ; final org . kie . workbench . common . stunner . core . graph . processing . layout . sugiyama . GraphLayer layer01 = result . get ( 0 ) ; org . kie . workbench . common . stunner . core . graph . processing . layout . sugiyama . step02 . LongestPathVertexLayererTest . match ( new java . lang . String [ ] { "A" } , layer01 ) ; final org . kie . workbench . common . stunner . core . graph . processing . layout . sugiyama . GraphLayer layer02 = result . get ( 1 ) ; org . kie . workbench . common . stunner . core . graph . processing . layout . sugiyama . step02 . LongestPathVertexLayererTest . match ( new java . lang . String [ ] { "D" , "B" , "C" } , layer02 ) ; final org . kie . workbench . common . stunner . core . graph . processing . layout . sugiyama . GraphLayer layer03 = result . get ( 2 ) ; org . kie . workbench . common . stunner . core . graph . processing . layout . sugiyama . step02 . LongestPathVertexLayererTest . match ( new java . lang . String [ ] { "E" , "F" , "G" , "H" } , layer03 ) ; } size ( ) { return index . size ( ) ; }
org . junit . Assert . assertEquals ( 3 , result . size ( ) )
validateCharacterSerialization ( ) { byte [ ] payload = org . apache . directmemory . serialization . StandardSerializerTest . serializer . serialize ( 'z' ) ; char res = org . apache . directmemory . serialization . StandardSerializerTest . serializer . deserialize ( payload , org . apache . directmemory . serialization . Character . class ) ; "<AssertPlaceHolder>" ; } deserialize ( byte [ ] , java . lang . Class ) { java . io . ByteArrayInputStream bis = new java . io . ByteArrayInputStream ( source ) ; java . io . ObjectInputStream ois = new java . io . ObjectInputStream ( bis ) { @ org . apache . directmemory . serialization . Override protected org . apache . directmemory . serialization . Class < ? > resolveClass ( java . io . ObjectStreamClass objectStreamClass ) throws java . io . IOException , org . apache . directmemory . serialization . ClassNotFoundException { java . lang . ClassLoader classLoader = clazz . getClassLoader ( ) ; return classLoader != null ? classLoader . loadClass ( objectStreamClass . getName ( ) ) : java . lang . Class . forName ( objectStreamClass . getName ( ) ) ; } } ; T obj = clazz . cast ( ois . readObject ( ) ) ; ois . close ( ) ; return obj ; }
org . junit . Assert . assertEquals ( 'z' , res )
testFunctionWithRestMetadata ( ) { java . lang . String script = "remote<sp>User<sp>function<sp>getUser(numeric<sp>userid<sp>restargsource=\"Path\")<sp>httpmethod=\"GET\"<sp>restpath=\"{userid}\"<sp>{}" ; cfml . CFSCRIPTParser . ScriptBlockContext scriptStatement = parseScript ( script ) ; if ( ( fCfmlParser . getMessages ( ) . size ( ) ) > 0 ) { org . junit . Assert . fail ( ( "whoops!<sp>" + ( fCfmlParser . getMessages ( ) ) ) ) ; } "<AssertPlaceHolder>" ; } getMessages ( ) { return messages ; }
org . junit . Assert . assertNotNull ( scriptStatement )
test_StatusTextListener_hoverMouseOverLink ( ) { java . util . concurrent . atomic . AtomicBoolean statusChanged = new java . util . concurrent . atomic . AtomicBoolean ( false ) ; int size = 500 ; org . eclipse . swt . chromium . Browser browser = new org . eclipse . swt . chromium . Browser ( shell , org . eclipse . swt . SWT . NONE ) ; java . lang . StringBuilder longhtml = new java . lang . StringBuilder ( ) ; for ( int i = 0 ; i < 200 ; i ++ ) { longhtml . append ( "text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<sp>text<br>" ) ; } browser . setText ( ( ( "<a<sp>href='http://localhost'>" + longhtml ) + "</a>" ) ) ; shell . setLocation ( 0 , 0 ) ; shell . setSize ( size , size ) ; browser . addProgressListener ( org . eclipse . swt . browser . ProgressListener . completedAdapter ( ( event ) -> { org . eclipse . swt . widgets . Display display = event . display ; org . eclipse . swt . graphics . Point cachedLocation = display . getCursorLocation ( ) ; display . setCursorLocation ( 20 , 10 ) ; browser . getBounds ( ) ; for ( int i = 0 ; i < size ; i = i + 5 ) { display . setCursorLocation ( i , i ) ; waitForMilliseconds ( ( debug_show_browser ? 3 : 1 ) ) ; } display . setCursorLocation ( cachedLocation ) ; } ) ) ; browser . addStatusTextListener ( ( event ) -> { statusChanged . set ( true ) ; } ) ; shell . open ( ) ; boolean passed = waitForPassCondition ( statusChanged :: get ) ; java . lang . String msg = "Mouse<sp>movent<sp>over<sp>text<sp>was<sp>suppose<sp>to<sp>trigger<sp>StatusTextListener.<sp>But<sp>it<sp>didn't" ; "<AssertPlaceHolder>" ; } waitForPassCondition ( java . util . function . Supplier ) { return waitForPassCondition ( passTest , ( 1000 * ( secondsToWaitTillFail ) ) ) ; }
org . junit . Assert . assertTrue ( msg , passed )
test8 ( ) { symbolic_examples . symbolic_example_3 . NopolExample ex = new symbolic_examples . symbolic_example_3 . NopolExample ( ) ; "<AssertPlaceHolder>" ; } isOddNumber ( int ) { int tmp = ( a - 1 ) % 2 ; if ( tmp != 0 ) { return true ; } return false ; }
org . junit . Assert . assertTrue ( ( ! ( ex . isOddNumber ( ( 100 / 2 ) ) ) ) )
tree_iter_2_02 ( ) { int [ ] keys = new int [ ] { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } ; org . apache . jena . dboe . index . RangeIndex rIndex = makeRangeIndex ( 2 ) ; org . apache . jena . dboe . index . test . IndexTestLib . add ( rIndex , keys ) ; java . util . List < java . lang . Integer > x = toIntList ( rIndex . iterator ( r ( 4 ) , r ( 7 ) ) ) ; java . util . List < java . lang . Integer > expected = toIntList ( 4 , 5 , 6 ) ; "<AssertPlaceHolder>" ; } r ( int ) { return org . apache . jena . tdb . base . record . RecordLib . intToRecord ( v , org . apache . jena . tdb . base . record . RecordLib . TestRecordLength ) ; }
org . junit . Assert . assertEquals ( expected , x )
getTagsAsCommaSeparatedString_shouldReturnEmptyString_null ( ) { java . lang . String result = p . getTagsAsCommaSeparatedString ( null ) ; "<AssertPlaceHolder>" ; } getTagsAsCommaSeparatedString ( java . util . List ) { java . lang . StringBuilder result = new java . lang . StringBuilder ( ) ; if ( propertyTags != null ) { for ( ch . puzzle . itc . mobiliar . business . property . entity . PropertyTagEntity tag : propertyTags ) { if ( ( ( tag . getName ( ) ) != null ) && ( ! ( tag . getName ( ) . isEmpty ( ) ) ) ) { result . append ( tag . getName ( ) ) . append ( "," ) ; } } } return result . toString ( ) ; }
org . junit . Assert . assertEquals ( "" , result )
testDoCommandWithoutWaitingWithResultAlreadyThereWithPI ( ) { configuration = new org . openqa . selenium . server . RemoteControlConfiguration ( ) ; configuration . setTimeoutInSeconds ( org . openqa . selenium . server . CommandQueueUnitTest . defaultTimeout ) ; configuration . setProxyInjectionModeArg ( true ) ; cq = new org . openqa . selenium . server . CommandQueue ( org . openqa . selenium . server . CommandQueueUnitTest . sessionId , name . getMethodName ( ) , configuration ) ; cq . putResult ( org . openqa . selenium . server . CommandQueueUnitTest . testResult ) ; cq . doCommandWithoutWaitingForAResponse ( org . openqa . selenium . server . CommandQueueUnitTest . testCommand , "" , "" ) ; "<AssertPlaceHolder>" ; } peekAtResult ( ) { return resultHolder . peek ( ) ; }
org . junit . Assert . assertEquals ( org . openqa . selenium . server . CommandQueueUnitTest . testResult , cq . peekAtResult ( ) )
findAny ( ) { java . lang . String uri = org . lightcouch . tests . DocumentsCRUDTest . dbClient . getBaseUri ( ) . toString ( ) ; com . google . gson . JsonObject jsonObject = org . lightcouch . tests . DocumentsCRUDTest . dbClient . findAny ( com . google . gson . JsonObject . class , uri ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( "Bar<sp>[bar=" + ( bar ) ) + "]" ; }
org . junit . Assert . assertNotNull ( jsonObject )
deveGerarXMLDeAcordoComOPadraoEstabelecido ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoICMSSN201 icms201 = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemImpostoICMSSN201 ( ) ; icms201 . setModalidadeBCICMSST ( NFNotaInfoItemModalidadeBCICMSST . PRECO_TABELADO ) ; icms201 . setOrigem ( NFOrigem . NACIONAL ) ; icms201 . setPercentualAliquotaAplicavelCalculoCreditoSN ( new java . math . BigDecimal ( "99.99" ) ) ; icms201 . setPercentualAliquotaImpostoICMSST ( new java . math . BigDecimal ( "99.99" ) ) ; icms201 . setPercentualMargemValorAdicionadoICMSST ( new java . math . BigDecimal ( "99.99" ) ) ; icms201 . setPercentualReducaoBCICMSST ( new java . math . BigDecimal ( "99.99" ) ) ; icms201 . setSituacaoOperacaoSN ( NFNotaSituacaoOperacionalSimplesNacional . IMUNE ) ; icms201 . setValorBCICMSST ( new java . math . BigDecimal ( "99999999999.99" ) ) ; icms201 . setValorCreditoICMSSN ( new java . math . BigDecimal ( "99999999999.99" ) ) ; icms201 . setValorICMSST ( new java . math . BigDecimal ( "99999999999.99" ) ) ; final java . lang . String xmlEsperado = "<NFNotaInfoItemImpostoICMSSN201><orig>0</orig><CSOSN>300</CSOSN><modBCST>0</modBCST><pMVAST>99.99</pMVAST><pRedBCST>99.99</pRedBCST><vBCST>99999999999.99</vBCST><pICMSST>99.99</pICMSST><vICMSST>99999999999.99</vICMSST><pCredSN>99.99</pCredSN><vCredICMSSN>99999999999.99</vCredICMSSN></NFNotaInfoItemImpostoICMSSN201>" ; "<AssertPlaceHolder>" ; } toString ( ) { return this . getDescricao ( ) ; }
org . junit . Assert . assertEquals ( xmlEsperado , icms201 . toString ( ) )
shouldGetIdentifierTypeFromName ( ) { for ( final uk . gov . gchq . gaffer . data . element . IdentifierType idType : uk . gov . gchq . gaffer . data . element . IdentifierType . values ( ) ) { "<AssertPlaceHolder>" ; } } fromName ( java . lang . String ) { return uk . gov . gchq . gaffer . data . element . IdentifierType . VALUES . get ( name ) ; }
org . junit . Assert . assertEquals ( idType , uk . gov . gchq . gaffer . data . element . IdentifierType . fromName ( idType . name ( ) ) )
doesNotHaveResultOnEmptyResults ( ) { org . jenkinsci . plugins . postbuildscript . model . PostBuildItem postBuildItem = new org . jenkinsci . plugins . postbuildscript . model . PostBuildItem ( java . util . Collections . emptySet ( ) ) ; "<AssertPlaceHolder>" ; } hasResult ( ) { return ! ( results . isEmpty ( ) ) ; }
org . junit . Assert . assertThat ( postBuildItem . hasResult ( ) , org . hamcrest . CoreMatchers . is ( false ) )
testRunListenableFutureWithCallback ( ) { bbejeck . guava . futures . ListenableFuture < java . lang . String > futureTask = executorService . submit ( new bbejeck . guava . futures . ListenableFuturesTest . Task ( ) ) ; futureTask . addListener ( new java . lang . Runnable ( ) { @ bbejeck . guava . futures . Override public void run ( ) { callbackRan = true ; endSignal . countDown ( ) ; } } , executorService ) ; endSignal . await ( ) ; "<AssertPlaceHolder>" ; } run ( ) { try { startSignal . await ( ) ; testMethod . invoke ( monitorExample ) ; } catch ( java . lang . Exception e ) { } finally { doneSignal . countDown ( ) ; } }
org . junit . Assert . assertThat ( callbackRan , org . hamcrest . CoreMatchers . is ( true ) )
sumLong ( ) { com . gs . collections . api . set . ImmutableSet < java . lang . Integer > objects = this . newSetWith ( 1 , 2 , 3 ) ; long actual = objects . sumOfLong ( Integer :: longValue ) ; "<AssertPlaceHolder>" ; } sumOfLong ( com . gs . collections . api . block . function . primitive . LongFunction ) { return 0 ; }
org . junit . Assert . assertEquals ( 6 , actual )
sequenceWithCopyContextMap ( ) { mdcAdapter . put ( "k0" , "v0" ) ; java . util . Map < java . lang . String , java . lang . String > map0 = mdcAdapter . copyOnThreadLocal . get ( ) ; mdcAdapter . getCopyOfContextMap ( ) ; mdcAdapter . put ( "k1" , "v1" ) ; "<AssertPlaceHolder>" ; } get ( ) { E r = null ; if ( ( numElems ) > 0 ) { ( numElems ) -- ; r = ea [ first ] ; ea [ first ] = null ; if ( ( ++ ( first ) ) == ( maxSize ) ) first = 0 ; } return r ; }
org . junit . Assert . assertSame ( map0 , mdcAdapter . copyOnThreadLocal . get ( ) )
testChildDenied ( ) { org . uberfire . security . authz . Permission p1 = new org . uberfire . security . impl . authz . DotNamedPermission ( "resource.read" , true ) ; org . uberfire . security . authz . Permission p2 = new org . uberfire . security . impl . authz . DotNamedPermission ( "resource.read.id1" , false ) ; "<AssertPlaceHolder>" ; } implies ( org . uberfire . security . authz . Permission ) { for ( org . uberfire . security . authz . Permission p : permissionSet ) { if ( p . implies ( permission ) ) { return true ; } } return false ; }
org . junit . Assert . assertFalse ( p1 . implies ( p2 ) )
testgetFileAsStringSuccess ( ) { java . lang . String string = com . onelogin . saml2 . util . Util . getFileAsString ( "config/config.certfile.properties" ) ; "<AssertPlaceHolder>" ; } getFileAsString ( java . lang . String ) { java . io . InputStream is = com . onelogin . saml2 . util . Util . class . getResourceAsStream ( ( "/" + relativeResourcePath ) ) ; if ( is == null ) { throw new java . io . FileNotFoundException ( relativeResourcePath ) ; } try { java . io . ByteArrayOutputStream bytes = new java . io . ByteArrayOutputStream ( ) ; com . onelogin . saml2 . util . Util . copyBytes ( new java . io . BufferedInputStream ( is ) , bytes ) ; return bytes . toString ( "utf-8" ) ; } finally { is . close ( ) ; } }
org . junit . Assert . assertNotNull ( string )
test_bs_init_writable ( ) { org . jerlang . type . Binary expected = new org . jerlang . type . Binary ( new int [ ] { 97 , 98 , 99 } ) ; org . jerlang . type . List params = org . jerlang . type . List . nil ; org . jerlang . type . Term result = org . jerlang . erts . Erlang . apply ( org . jerlang . type . Atom . of ( "bs_init_writable" ) , org . jerlang . type . Atom . of ( "test" ) , params ) ; "<AssertPlaceHolder>" ; } of ( byte [ ] ) { return org . jerlang . type . Atom . of ( new java . lang . String ( bytes , ISO_8859_1 ) ) ; }
org . junit . Assert . assertEquals ( expected , result )
testWatchUnwatchMultiExec ( ) { java . lang . String wkey = "watch-key" ; redis1 . watch ( wkey ) ; redis1 . set ( wkey , "1" ) ; redis1 . unwatch ( ) ; io . craft . atom . redis . api . RedisTransaction t = redis1 . multi ( ) ; t . set ( key , value ) ; redis1 . exec ( t ) ; java . lang . String v = redis1 . get ( key ) ; "<AssertPlaceHolder>" ; System . out . println ( java . lang . String . format ( "[CRAFT-ATOM-REDIS]<sp>(^_^)<sp><%s><sp>Case<sp>-><sp>test<sp>watch<sp>&<sp>unwatch<sp>&<sp>multi<sp>&<sp>exec.<sp>" , io . craft . atom . test . CaseCounter . incr ( 1 ) ) ) ; } get ( java . lang . String ) { executeCommand ( CommandEnum . GET , key ) ; }
org . junit . Assert . assertEquals ( value , v )
getGraphTransactions ( ) { org . gradoop . flink . model . impl . layouts . transactional . tuples . GraphTransaction tx0 = new org . gradoop . flink . model . impl . layouts . transactional . tuples . GraphTransaction ( org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . g0 , com . google . common . collect . Sets . newHashSet ( org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . v0 , org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . v1 ) , com . google . common . collect . Sets . newHashSet ( org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . e0 ) ) ; "<AssertPlaceHolder>" ; } getGraphTransactions ( ) { org . gradoop . flink . model . impl . layouts . transactional . tuples . GraphTransaction tx0 = new org . gradoop . flink . model . impl . layouts . transactional . tuples . GraphTransaction ( org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . g0 , com . google . common . collect . Sets . newHashSet ( org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . v0 , org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . v1 ) , com . google . common . collect . Sets . newHashSet ( org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . e0 ) ) ; org . junit . Assert . assertEquals ( tx0 , from ( singletonList ( org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . g0 ) , asList ( org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . v0 , org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . v1 ) , singletonList ( org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . e0 ) ) . getGraphTransactions ( ) . collect ( ) . get ( 0 ) ) ; }
org . junit . Assert . assertEquals ( tx0 , from ( singletonList ( org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . g0 ) , asList ( org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . v0 , org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . v1 ) , singletonList ( org . gradoop . flink . model . impl . layouts . gve . GVELayoutTest . e0 ) ) . getGraphTransactions ( ) . collect ( ) . get ( 0 ) )
geeftOutputBestand ( ) { final java . nio . file . Path output = fileHandler . geefOutputFile ( "not-1-expected.xml" ) ; "<AssertPlaceHolder>" ; } toFile ( ) { return null ; }
org . junit . Assert . assertFalse ( output . toFile ( ) . exists ( ) )
test_toEpochSecond_19700101_minusOneNano ( ) { java . time . OffsetDateTime dt = java . time . OffsetDateTime . of ( java . time . LocalDate . of ( 1969 , 12 , 31 ) , java . time . LocalTime . of ( 23 , 59 , 59 , 999999999 ) , ZoneOffset . UTC ) ; "<AssertPlaceHolder>" ; } toEpochSecond ( ) { return dateTime . toEpochSecond ( offset ) ; }
org . junit . Assert . assertEquals ( dt . toEpochSecond ( ) , ( - 1 ) )
whenSearchingWithFilterQuery_thenAllMatchingItemsShouldAvialble ( ) { com . baeldung . solr . fulltext . search . service . ItemSearchServiceLiveTest . itemSearchService . index ( "hm0001" , "hm0003" 0 , "Home<sp>Appliances" , 100.0F ) ; com . baeldung . solr . fulltext . search . service . ItemSearchServiceLiveTest . itemSearchService . index ( "hm0002" , "Brand1<sp>Refrigerator" , "Home<sp>Appliances" , 300.0F ) ; com . baeldung . solr . fulltext . search . service . ItemSearchServiceLiveTest . itemSearchService . index ( "hm0003" , "Brand2<sp>Ceiling<sp>Fan" , "Home<sp>Appliances" , 200.0F ) ; com . baeldung . solr . fulltext . search . service . ItemSearchServiceLiveTest . itemSearchService . index ( "hm0003" 2 , "Brand2<sp>Dishwasher" , "Washing<sp>tools<sp>and<sp>equipment<sp>" , 250.0F ) ; org . apache . solr . client . solrj . SolrQuery query = new org . apache . solr . client . solrj . SolrQuery ( ) ; query . setQuery ( "price:[100<sp>TO<sp>300]" ) ; query . addFilterQuery ( "description:Brand1" , "hm0003" 1 ) ; org . apache . solr . client . solrj . response . QueryResponse response = com . baeldung . solr . fulltext . search . service . ItemSearchServiceLiveTest . solrClient . query ( query ) ; java . util . List < com . baeldung . solr . fulltext . search . model . Item > items = response . getBeans ( com . baeldung . solr . fulltext . search . model . Item . class ) ; "<AssertPlaceHolder>" ; } size ( ) { return elements . size ( ) ; }
org . junit . Assert . assertEquals ( 2 , items . size ( ) )
shouldGetAccount ( ) { when ( accountServiceMock . get ( 1 ) ) . thenReturn ( immutableAccountMock ) ; com . jayway . service . ImmutableAccount account = bankController . get ( 1 ) ; "<AssertPlaceHolder>" ; } get ( java . lang . Integer ) { com . jayway . repository . AccountEntity account = getAccountEntity ( accountNumber ) ; return new com . jayway . service . ImmutableAccount ( account . getAccountNumber ( ) , account . getBalance ( ) ) ; }
org . junit . Assert . assertThat ( account , org . hamcrest . CoreMatchers . is ( immutableAccountMock ) )
getHandle_no_uri ( ) { ezvcard . property . Impp impp = new ezvcard . property . Impp ( ( ( java . lang . String ) ( null ) ) ) ; "<AssertPlaceHolder>" ; } getHandle ( ) { if ( ( uri ) == null ) { return null ; } return uri . getSchemeSpecificPart ( ) ; }
org . junit . Assert . assertNull ( impp . getHandle ( ) )
testPrimitiveArray ( ) { org . evosuite . EvoSuite evosuite = new org . evosuite . EvoSuite ( ) ; java . lang . String targetClass = com . examples . with . different . packagename . assertion . ArrayPrimitiveWrapper . class . getCanonicalName ( ) ; org . evosuite . Properties . TARGET_CLASS = targetClass ; org . evosuite . Properties . ASSERTION_STRATEGY = org . evosuite . Properties . AssertionStrategy . ALL ; java . lang . String [ ] command = new java . lang . String [ ] { "-generateSuite" , "-class" , targetClass } ; java . lang . Object result = evosuite . parseCommandLine ( command ) ; org . evosuite . ga . metaheuristics . GeneticAlgorithm < ? > ga = getGAFromResult ( result ) ; boolean hasSameAssertion = false ; org . evosuite . testsuite . TestSuiteChromosome best = ( ( org . evosuite . testsuite . TestSuiteChromosome ) ( ga . getBestIndividual ( ) ) ) ; for ( org . evosuite . testcase . TestChromosome testChromosome : best . getTestChromosomes ( ) ) { for ( org . evosuite . assertion . Assertion assertion : testChromosome . getTestCase ( ) . getAssertions ( ) ) { if ( assertion instanceof org . evosuite . assertion . SameAssertion ) { hasSameAssertion = true ; } } } System . out . println ( ( "EvolvedTestSuite:\n" + best ) ) ; "<AssertPlaceHolder>" ; } getAssertions ( ) { return delegate . getAssertions ( ) ; }
org . junit . Assert . assertFalse ( hasSameAssertion )
testInit ( ) { java . lang . String [ ] args = org . gstreamer . Gst . init ( "InitTest" , new java . lang . String [ ] { "--gst-plugin-spew" } ) ; "<AssertPlaceHolder>" ; org . gstreamer . Gst . deinit ( ) ; } init ( java . lang . String , java . lang . String [ ] ) { if ( ( org . gstreamer . Gst . initCount . getAndIncrement ( ) ) > 0 ) { return args ; } org . gstreamer . Gst . NativeArgs argv = new org . gstreamer . Gst . NativeArgs ( progname , args ) ; com . sun . jna . Pointer [ ] error = new com . sun . jna . Pointer [ ] { null } ; if ( ! ( org . gstreamer . Gst . gst . gst_init_check ( argv . argcRef , argv . argvRef , error ) ) ) { org . gstreamer . Gst . initCount . decrementAndGet ( ) ; throw new org . gstreamer . GstException ( new org . gstreamer . GError ( new org . gstreamer . lowlevel . GstAPI . GErrorStruct ( error [ 0 ] ) ) ) ; } org . gstreamer . Gst . logger . fine ( ( "after<sp>gst_init,<sp>argc=" + ( argv . argcRef . getValue ( ) ) ) ) ; if ( org . gstreamer . Gst . useDefaultContext ) { org . gstreamer . Gst . mainContext = org . gstreamer . lowlevel . GMainContext . getDefaultContext ( ) ; org . gstreamer . Gst . executorService = new org . gstreamer . glib . MainContextExecutorService ( org . gstreamer . Gst . mainContext ) ; } else { org . gstreamer . Gst . mainContext = new org . gstreamer . lowlevel . GMainContext ( ) ; org . gstreamer . Gst . executorService = java . util . concurrent . Executors . newSingleThreadScheduledExecutor ( org . gstreamer . Gst . threadFactory ) ; } org . gstreamer . Gst . quit = new java . util . concurrent . CountDownLatch ( 1 ) ; org . gstreamer . Gst . loadAllClasses ( ) ; return argv . toStringArray ( ) ; }
org . junit . Assert . assertTrue ( ( ( args . length ) == 0 ) )
setPath ( io . vertx . core . http . HttpServerRequest ) { io . vertx . ext . web . impl . HttpServerRequestWrapper wrapper = new io . vertx . ext . web . impl . HttpServerRequestWrapper ( request ) ; io . vertx . ext . web . impl . HttpServerRequestUtils . setPath ( wrapper , "abc" ) ; "<AssertPlaceHolder>" ; } setPath ( io . vertx . core . http . HttpServerRequest , java . lang . String ) { ( ( io . vertx . ext . web . impl . HttpServerRequestWrapper ) ( request ) ) . setPath ( path ) ; }
org . junit . Assert . assertEquals ( "abc" , wrapper . path ( ) )
testStreamingAdded ( ) { final org . apache . oozie . fluentjob . api . action . Streaming streaming = new org . apache . oozie . fluentjob . api . action . StreamingBuilder ( ) . withMapper ( "mapper.sh" ) . withReducer ( "reducer.sh" ) . build ( ) ; final org . apache . oozie . fluentjob . api . action . MapReduceActionBuilder builder = getBuilderInstance ( ) ; builder . withStreaming ( streaming ) ; final org . apache . oozie . fluentjob . api . action . MapReduceAction mrAction = builder . build ( ) ; "<AssertPlaceHolder>" ; } getStreaming ( ) { return streaming ; }
org . junit . Assert . assertEquals ( streaming , mrAction . getStreaming ( ) )
shouldGetProductionEnv ( ) { when ( java . lang . System . getProperty ( "pagseguro.environment" ) ) . thenReturn ( "production" ) ; br . com . uol . pagseguro . api . PagSeguroEnv expectedEnv = br . com . uol . pagseguro . api . PagSeguroEnv . PRODUCTION ; br . com . uol . pagseguro . api . PagSeguroEnv env = provider . getEnvironment ( ) ; "<AssertPlaceHolder>" ; } getEnvironment ( ) { br . com . uol . pagseguro . api . environment . JVMEnvVariableEnvironmentProvider . LOGGER . info ( "Lendo<sp>configuracoes<sp>de<sp>ambiente" ) ; final br . com . uol . pagseguro . api . PagSeguroEnv environment ; if ( ( java . lang . System . getProperty ( "pagseguro.environment" ) ) != null ) { environment = br . com . uol . pagseguro . api . PagSeguroEnv . fromName ( java . lang . System . getProperty ( "pagseguro.environment" ) ) ; } else { throw new java . lang . IllegalArgumentException ( "Environment<sp>property<sp>not<sp>found" ) ; } br . com . uol . pagseguro . api . environment . JVMEnvVariableEnvironmentProvider . LOGGER . info ( "Configuracoes<sp>de<sp>ambiente<sp>lidas" ) ; return environment ; }
org . junit . Assert . assertEquals ( expectedEnv , env )