input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testCommand ( ) { org . bff . javampd . command . MPDCommand mpdCommand = new org . bff . javampd . command . MPDCommand ( "command" ) ; "<AssertPlaceHolder>" ; } getCommand ( ) { return command ; }
org . junit . Assert . assertEquals ( "command" , mpdCommand . getCommand ( ) )
deveObterVersaoComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . evento . cancelamento . NFRetornoCancelamento cancelamento = new com . fincatto . documentofiscal . nfe400 . classes . evento . cancelamento . NFRetornoCancelamento ( ) ; final java . lang . String versao = "3.10" ; cancelame...
org . junit . Assert . assertEquals ( "3.10" , cancelamento . getVersao ( ) )
shouldGetJavadocForObjectPersoon ( ) { nl . bzk . brp . metaregister . model . ObjectType persoon = objectDao . getBySyncId ( 3010 ) ; java . lang . String tekst = dao . getJavaDocForObject ( persoon ) ; "<AssertPlaceHolder>" ; } getJavaDocForObject ( nl . bzk . brp . metaregister . model . ObjectType ) { java . lang ....
org . junit . Assert . assertNotNull ( tekst )
toSortedListBy ( ) { org . eclipse . collections . api . list . MutableList < java . lang . Integer > mutableList = this . classUnderTest ( ) . toList ( ) ; mutableList . shuffleThis ( ) ; org . eclipse . collections . api . list . ImmutableList < java . lang . Integer > immutableList = mutableList . toImmutable ( ) ; ...
org . junit . Assert . assertEquals ( this . classUnderTest ( ) , sortedList )
testVisitorLatitudeF ( ) { request . setVisitorLatitude ( null ) ; "<AssertPlaceHolder>" ; } getVisitorLatitude ( ) { return ( ( java . lang . Double ) ( getParameter ( org . piwik . java . tracking . PiwikRequest . VISITOR_LATITUDE ) ) ) ; }
org . junit . Assert . assertNull ( request . getVisitorLatitude ( ) )
testDeriveChildSelector_ZeroRemaining ( ) { org . eclipse . aether . collection . DependencySelector other1 = new org . eclipse . aether . util . graph . selector . AndDependencySelectorTest . DummyDependencySelector ( true , null ) ; org . eclipse . aether . collection . DependencySelector other2 = new org . eclipse ....
org . junit . Assert . assertNull ( selector . deriveChildSelector ( null ) )
setInvalidDataSourceAndExecutorConfigurationServerTest ( ) { java . lang . String [ ] origEntries = getConfigurationData ( "server" ) ; org . glassfish . javaee7 . batch . test . util . CommandUtil cmd = org . glassfish . javaee7 . batch . test . util . CommandUtil . getInstance ( ) . executeCommandAndGetAsList ( "asad...
org . junit . Assert . assertTrue ( ( ( ( ! ( cmd . ranOK ( ) ) ) && ( newEntries [ 0 ] . equals ( origEntries [ 0 ] ) ) ) && ( newEntries [ 1 ] . equals ( origEntries [ 1 ] ) ) ) )
testEvalReturnString ( ) { actual . add ( connection . eval ( "return<sp>KEYS[1]" , ReturnType . VALUE , 1 , "foo" ) ) ; byte [ ] result = ( ( byte [ ] ) ( getResults ( ) . get ( 0 ) ) ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { if ( ! ( org . springframework . data . redis . RedisTestProfileValueSourc...
org . junit . Assert . assertEquals ( "foo" , new java . lang . String ( result ) )
testGetValue ( ) { com . bixly . pastevid . screencap . RecorderPanelTest . log ( "getValue" ) ; long expResult = 0L ; long result = com . bixly . pastevid . screencap . RecorderPanelTest . instance . getValue ( ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return clockTime ; }
org . junit . Assert . assertEquals ( expResult , result )
loadReturnsUnaffectedString ( ) { doReturn ( 1 ) . when ( this . dataHolder ) . getIntValue ( org . phenotips . data . internal . controller . ClinicalStatusControllerTest . UNAFFECTED ) ; org . phenotips . data . PatientData < java . lang . String > result = this . component . load ( this . patient ) ; "<AssertPlaceHo...
org . junit . Assert . assertEquals ( org . phenotips . data . internal . controller . ClinicalStatusControllerTest . UNAFFECTED , result . getValue ( ) )
testComponentAdapterResolutionIsFirstLookedForByClassKeyToTheTopOfTheContainerHierarchy ( ) { com . picocontainer . DefaultPicoContainer pico = new com . picocontainer . DefaultPicoContainer ( ) ; pico . addComponent ( "default" , com . picocontainer . testmodel . SimpleTouchable . class ) ; pico . addComponent ( com ....
org . junit . Assert . assertEquals ( com . picocontainer . testmodel . DecoratedTouchable . class , touchable . getClass ( ) )
launchReindexationTest ( ) { when ( fr . gouv . vitam . logbook . operations . client . LogbookOperationsClientRestTest . mock . post ( ) ) . thenReturn ( javax . ws . rs . core . Response . status ( Status . CREATED ) . entity ( fr . gouv . vitam . common . json . JsonHandler . createObjectNode ( ) ) . build ( ) ) ; c...
org . junit . Assert . assertNotNull ( resp )
testRedecorateTextComponent ( ) { javax . swing . JTextField textField = new javax . swing . JTextField ( ) ; org . jdesktop . swingx . autocomplete . AutoCompleteDecorator . decorate ( textField , java . util . Collections . emptyList ( ) , true ) ; int expectedFocusListenerLength = textField . getFocusListeners ( ) ....
org . junit . Assert . assertThat ( textField . getFocusListeners ( ) . length , org . hamcrest . CoreMatchers . is ( expectedFocusListenerLength ) )
testMappingEnabled ( ) { configure ( resourceOptimizationEnabled , true ) ; boolean enabled = org . richfaces . resource . mapping . ResourceLoadingOptimizationConfiguration . isEnabled ( ) ; "<AssertPlaceHolder>" ; } isEnabled ( ) { return org . richfaces . application . configuration . ConfigurationServiceHelper . ge...
org . junit . Assert . assertTrue ( enabled )
testDoFilter_attachesHttpSessionToUISession ( ) { org . eclipse . rap . rwt . internal . service . UISessionImpl deserializedUISession = new org . eclipse . rap . rwt . internal . service . UISessionImpl ( null , null ) ; javax . servlet . http . HttpSession httpSession = org . eclipse . rap . rwt . internal . engine ....
org . junit . Assert . assertSame ( httpSession , deserializedUISession . getHttpSession ( ) )
testValidateXMLSignedMetadataSettings1 ( ) { java . lang . String signedmetadata = com . onelogin . saml2 . util . Util . getFileAsString ( "data/metadata/signed_metadata_settings1.xml" ) ; org . w3c . dom . Document docSignedmetadata = com . onelogin . saml2 . util . Util . loadXML ( signedmetadata ) ; boolean isValid...
org . junit . Assert . assertTrue ( isValid )
testTeiidURLOneSlash ( ) { java . lang . String SERVER_URL = "mm:/localhost:31000" ; "<AssertPlaceHolder>" ; } isValidServerURL ( java . lang . String ) { boolean valid = true ; try { new org . teiid . net . TeiidURL ( serverURL ) ; } catch ( java . lang . Exception e ) { valid = false ; } return valid ; }
org . junit . Assert . assertFalse ( org . teiid . net . TeiidURL . isValidServerURL ( SERVER_URL ) )
testPrefixes ( ) { "<AssertPlaceHolder>" ; } prefixes ( ) { if ( ! ( object . has ( org . onosproject . ra . config . RouterAdvertisementDeviceConfig . PREFIXES ) ) ) { return null ; } java . util . List < org . onosproject . net . host . InterfaceIpAddress > ips = com . google . common . collect . Lists . newArrayList...
org . junit . Assert . assertThat ( config . prefixes ( ) , org . hamcrest . Matchers . is ( prefixes ) )
last_a_fby_b_big ( ) { final java . lang . String rulebase = "<sp>ms" 4 ; final long maxCount = 10000 ; test . ws . prova . test2 . ProvaMetadataTest . ResultCounter count = new test . ws . prova . test2 . ProvaMetadataTest . ResultCounter ( maxCount ) ; java . util . Map < java . lang . String , java . lang . Object >...
org . junit . Assert . assertEquals ( maxCount , count . get ( ) )
shouldSupportHeadersForResponses ( ) { stubClient . respond ( com . spotify . apollo . Response . < okio . ByteString > ok ( ) . withHeader ( "foo" , "bar" ) ) . to ( "http://ping" ) ; com . spotify . apollo . Response reply = getResponse ( "http://ping" ) . toCompletableFuture ( ) . get ( ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertThat ( reply . header ( "foo" ) . get ( ) , org . hamcrest . CoreMatchers . equalTo ( "bar" ) )
testVLongRandom ( ) { int count = 1024 * 1024 ; long [ ] data = new long [ count ] ; java . util . Random rng = new java . util . Random ( ) ; for ( int i = 0 ; i < ( data . length ) ; ++ i ) { int shift = ( rng . nextInt ( Long . SIZE ) ) + 1 ; long mask = ( 1L << shift ) - 1 ; long a = ( ( long ) ( rng . nextInt ( ) ...
org . junit . Assert . assertEquals ( org . apache . hadoop . io . file . tfile . Utils . readVLong ( in ) , data [ i ] )
validateSetTezJarLocalResourcesDefinedExistingDirectoryIgnored ( ) { java . net . URL [ ] cp = ( ( java . net . URLClassLoader ) ( java . lang . ClassLoader . getSystemClassLoader ( ) ) ) . getURLs ( ) ; java . lang . StringBuffer buffer = new java . lang . StringBuffer ( ) ; for ( java . net . URL url : cp ) { buffer ...
org . junit . Assert . assertTrue ( localizedMap . isEmpty ( ) )
testWithImpossibleTime ( ) { results = com . wanasit . chrono . Chrono . Parse ( "0<sp>hours<sp>ago" , refDate ) ; "<AssertPlaceHolder>" ; } Parse ( java . lang . String , java . util . Date ) { return com . wanasit . chrono . Chrono . standard . parse ( text , refDate ) ; }
org . junit . Assert . assertEquals ( 0 , results . size ( ) )
testHasGlobalAction ( ) { com . eclipsesource . tabris . internal . ui . ActionDescriptor descriptor = mock ( com . eclipsesource . tabris . internal . ui . ActionDescriptor . class ) ; when ( descriptor . getId ( ) ) . thenReturn ( "foo" ) ; uiDescriptor . add ( descriptor ) ; com . eclipsesource . tabris . internal ....
org . junit . Assert . assertTrue ( hasAction )
testValidPoint ( ) { org . geoserver . web . StringValidatable validatable = new org . geoserver . web . StringValidatable ( "abc.def" ) ; new org . geoserver . web . data . resource . BasicResourceConfig . ResourceNameValidator ( ) . validate ( validatable ) ; "<AssertPlaceHolder>" ; } isValid ( ) { return errorList ....
org . junit . Assert . assertTrue ( validatable . isValid ( ) )
increaseConcurrentOperationCountFailTest ( ) { int noOfConcurrentOperations = com . vmware . vrack . hms . common . util . CommonProperties . getMaxConcurrentTasksPerNode ( ) ; for ( int currentCount = 1 ; currentCount < ( noOfConcurrentOperations + 1 ) ; ++ currentCount ) { com . vmware . vrack . hms . node . NodeMeta...
org . junit . Assert . assertFalse ( lockAcquired )
testNodeStatusWithEmptyNodeLabels ( ) { org . apache . hadoop . yarn . api . records . NodeId nodeId = org . apache . hadoop . yarn . api . records . NodeId . newInstance ( "host0" , 0 ) ; org . apache . hadoop . yarn . client . cli . NodeCLI cli = new org . apache . hadoop . yarn . client . cli . NodeCLI ( ) ; when ( ...
org . junit . Assert . assertEquals ( 0 , result )
testGeldigBuitenlandsePlaatsOfRegioOnbekend ( ) { final 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 ( 20160502 ) , null , null , null , null ...
org . junit . Assert . assertEquals ( 0 , meldingen . size ( ) )
longValueWithNull ( ) { final org . jboss . msc . value . Value < java . lang . Long > value = new org . jboss . msc . value . DefaultValue < java . lang . Long > ( new org . jboss . msc . value . ImmediateValue < java . lang . Long > ( null ) , new org . jboss . msc . value . ImmediateValue < java . lang . Long > ( 4L...
org . junit . Assert . assertEquals ( 4L , ( ( long ) ( value . getValue ( ) ) ) )
loadMarketplaceHistoryWithinPeriod ( ) { createMarketplaceHistoryEntries ( ) ; org . oscm . domobjects . MarketplaceHistory mp = dao . loadMarketplaceHistoryWithinPeriod ( org . oscm . billingservice . dao . SharesDataRetrievalServiceBean2IT . MARKETPLACE_KEY1 , org . oscm . billingservice . dao . SharesDataRetrievalSe...
org . junit . Assert . assertEquals ( org . oscm . billingservice . dao . SharesDataRetrievalServiceBean2IT . MARKETPLACE_KEY1 , mp . getObjKey ( ) )
testDeleteExpectedPartitionValues ( ) { org . finra . herd . model . jpa . PartitionKeyGroupEntity partitionKeyGroupEntity = partitionKeyGroupDaoTestHelper . createPartitionKeyGroupEntity ( org . finra . herd . service . PARTITION_KEY_GROUP ) ; expectedPartitionValueDaoTestHelper . createExpectedPartitionValueEntities ...
org . junit . Assert . assertEquals ( 0 , partitionKeyGroupEntity . getExpectedPartitionValues ( ) . size ( ) )
shouldReturnNullForPlayerArgOfResetCommand ( ) { java . lang . String [ ] args = new java . lang . String [ ] { "reset" , "Beds" , "" } ; java . util . List < java . lang . String > completionResult = underTest . onTabComplete ( commandSender , command , null , args ) ; "<AssertPlaceHolder>" ; } onTabComplete ( org . b...
org . junit . Assert . assertNull ( completionResult )
testJsonArrayOfPrimitives ( ) { java . lang . String expected = "[\"a\",1,3.2,null,true]" ; java . lang . Object [ ] array = new java . lang . Object [ ] { "a" , 1 , 3.2 , null , true } ; java . lang . String json = genson . serialize ( array ) ; "<AssertPlaceHolder>" ; } serialize ( java . lang . Object ) { com . owli...
org . junit . Assert . assertEquals ( expected , json )
testCreateDisk ( ) { org . easymock . EasyMock . expect ( computeRpcMock . createDisk ( com . google . cloud . compute . deprecated . ComputeImplTest . DISK_ID . getZone ( ) , com . google . cloud . compute . deprecated . ComputeImplTest . DISK . toPb ( ) , com . google . cloud . compute . deprecated . ComputeImplTest ...
org . junit . Assert . assertEquals ( zoneOperation , operation )
size_cyclophane_odd ( ) { int [ ] [ ] cyclophane_even = org . openscience . cdk . graph . InitialCyclesTest . cyclophane_even ( ) ; org . openscience . cdk . graph . RelevantCycles relevant = new org . openscience . cdk . graph . RelevantCycles ( cyclophane_even ) ; "<AssertPlaceHolder>" ; } size ( ) { return this . ce...
org . junit . Assert . assertThat ( relevant . size ( ) , org . hamcrest . CoreMatchers . is ( 3 ) )
testDrop ( ) { es . ieci . tecdoc . fwktd . sql . node . schema . Table table = new es . ieci . tecdoc . fwktd . sql . node . schema . Table ( ) ; table . setName ( "anyGivenTable" ) ; table . setSchemaName ( "anyGivenSchema" ) ; es . ieci . tecdoc . fwktd . sql . node . statement . drop . Drop drop = new es . ieci . t...
org . junit . Assert . assertNotNull ( drop . getSqlString ( ) )
testCapitalizeWords8 ( ) { java . lang . Object s = "a....ze<sp>tyu<sp>iop" ; java . lang . String expResult = "A....Ze<sp>Tyu<sp>Iop" ; java . lang . String result = org . thymeleaf . util . StringUtils . capitalizeWords ( s , "<sp>." ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( expResult , result )
testPostSiteDocument ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
shouldKnowMultipleTimeWindows ( ) { com . graphhopper . jsprit . core . problem . job . Service s = Service . Builder . newInstance ( "s" ) . setLocation ( com . graphhopper . jsprit . core . problem . Location . newInstance ( "loc" ) ) . addTimeWindow ( com . graphhopper . jsprit . core . problem . solution . route . ...
org . junit . Assert . assertEquals ( 2 , s . getTimeWindows ( ) . size ( ) )
shouldFindFile ( ) { final java . lang . String targetDir = toOSPath ( "target" , "test-classes" ) ; final java . lang . String className = getClass ( ) . getName ( ) ; "<AssertPlaceHolder>" ; } binaryFileExists ( java . lang . String , java . lang . String ) { return ( ( com . github . bmsantos . core . cola . utils ....
org . junit . Assert . assertThat ( binaryFileExists ( targetDir , className ) , org . hamcrest . CoreMatchers . is ( true ) )
findGeoServerCASRESTPublisherMethodTest ( ) { java . lang . reflect . Method method = it . geosolutions . geoserver . rest . cas . GeoServerCASRESTPublisher . class . getMethod ( "publishShp" , java . lang . String . class , java . lang . String . class , org . apache . commons . httpclient . NameValuePair [ ] . class ...
org . junit . Assert . assertNotNull ( method )
removeInformationSpace ( ) { net . sharkfw . system . L . d ( ( "Using<sp>database:<sp>" + ( net . sharkfw . knowledgeBase . persistent . sql . SqlAsipInformationTest . DB10 ) ) , this ) ; net . sharkfw . knowledgeBase . persistent . sql . SqlSharkKB sqlSharkKB = new net . sharkfw . knowledgeBase . persistent . sql . S...
org . junit . Assert . assertEquals ( 2 , numberOfSpaces )
testNoSupportedPaths ( ) { context . registerInjectActivateService ( cugExclude , com . google . common . collect . ImmutableMap . of ( "principalNames" , new java . lang . String [ ] { org . apache . jackrabbit . oak . spi . security . authorization . cug . impl . CugConfigurationOsgiTest . ANY_PRINCIPAL_NAME } ) ) ; ...
org . junit . Assert . assertSame ( org . apache . jackrabbit . oak . spi . security . authorization . permission . EmptyPermissionProvider . getInstance ( ) , permissionProvider )
testSkipBoolean ( ) { long sentinel = Long . MAX_VALUE ; org . apache . trevni . OutputBuffer out = new org . apache . trevni . OutputBuffer ( ) ; out . writeValue ( false , ValueType . BOOLEAN ) ; out . writeLong ( sentinel ) ; org . apache . trevni . InputBuffer in = new org . apache . trevni . InputBuffer ( new org ...
org . junit . Assert . assertEquals ( sentinel , in . readLong ( ) )
testLogRecovery ( ) { int iterations = 10 ; for ( int i = 0 ; i < iterations ; i ++ ) { boolean sync = ( ( i % 2 ) == 0 ) ? true : false ; journal . write ( java . nio . ByteBuffer . wrap ( new java . lang . String ( ( "DATA" + i ) ) . getBytes ( "UTF-8" ) ) , sync ) ; } journal . close ( ) ; journal . open ( ) ; int i...
org . junit . Assert . assertEquals ( ( "DATA" + ( i ++ ) ) , new java . lang . String ( buffer . array ( ) , "UTF-8" ) )
testCreateEntity_MayaLink ( ) { handler . addRequest ( false , "POST" , "/qcbin/rest/domains/domain/projects/project/defects/86/defect-links" , 201 ) . expectXmlBody ( "<defect-link><comment>There</comment><first-endpoint-id>86</first-endpoint-id></defect-link>" ) . content ( "entityServiceTest_defectLink.xml" ) ; hand...
org . junit . Assert . assertEquals ( 2763 , created . getId ( ) )
testWebServiceEP ( ) { org . apache . tuscany . sca . implementation . java . JavaImplementation type = javaImplementationFactory . createJavaImplementation ( ) ; processor . visitClass ( org . apache . tuscany . sca . implementation . java . introspect . impl . JAXWSProcessorTestCase . Foo2Impl . class , type ) ; org ...
org . junit . Assert . assertNotNull ( service )
shouldNotFilterAnyArchetypeReferencesNoEndDate ( ) { org . joda . time . DateTime startDateTime = new org . joda . time . DateTime ( "2013-03-01" ) ; org . joda . time . DateTime endDateTime = null ; java . util . Collection < se . cambio . cds . model . instance . ArchetypeReference > ehrData = generateContactArchetyp...
org . junit . Assert . assertEquals ( 2 , filteredEhrARs . size ( ) )
getDouble ( ) { final java . lang . Integer value = 44 ; final io . trane . ndbc . value . IntegerValue wrapper = new io . trane . ndbc . value . IntegerValue ( value ) ; "<AssertPlaceHolder>" ; } getDouble ( ) { return new java . lang . Double ( get ( ) ) ; }
org . junit . Assert . assertEquals ( new java . lang . Double ( value ) , wrapper . getDouble ( ) )
setNullOutputVlanId ( ) { flow . setOutputVlanId ( null ) ; "<AssertPlaceHolder>" ; } getOutputVlanId ( ) { org . junit . Assert . assertEquals ( org . openkilda . messaging . command . Constants . outputVlanId , flow . getOutputVlanId ( ) . intValue ( ) ) ; }
org . junit . Assert . assertEquals ( 0 , flow . getOutputVlanId ( ) . intValue ( ) )
testTwoIf2 ( ) { instrument ( org . jacoco . core . test . validation . java5 . CyclomaticComplexityTest . TwoIf . class ) ; target . test ( ( - 1 ) ) ; final org . jacoco . core . analysis . ICounter complexity = analyze ( ) ; "<AssertPlaceHolder>" ; } getInstance ( int , int ) { if ( ( missed <= ( org . jacoco . core...
org . junit . Assert . assertEquals ( org . jacoco . core . internal . analysis . CounterImpl . getInstance ( 2 , 1 ) , complexity )
testActivitiesSinceUntil ( ) { if ( ! ( isV5OrHigher ( ) ) ) return ; java . util . Map < java . lang . String , java . lang . String > params = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; params . put ( "ps" , "200" ) ; com . ibm . sbt . services . client . base . datahandlers . Ent...
org . junit . Assert . assertEquals ( 2 , myActivities . size ( ) )
handle_shouldNotSetEmptyStringPropertiesToNullForAllowEmptyStringsAnnotation ( ) { org . openmrs . api . handler . OpenmrsObjectSaveHandlerTest . SomeClass obj = new org . openmrs . api . handler . OpenmrsObjectSaveHandlerTest . SomeClass ( "" ) ; new org . openmrs . api . handler . OpenmrsObjectSaveHandler ( ) . handl...
org . junit . Assert . assertNotNull ( obj . getName ( ) )
singleNodeInitializationTest ( ) { org . dataconservancy . packaging . tool . impl . generator . PackageModelBuilderState state = bootstrap1 ( ) ; state . assembler = new org . dataconservancy . packaging . tool . impl . generator . mocks . FunctionalAssemblerMock ( folder . getRoot ( ) ) ; org . dataconservancy . pack...
org . junit . Assert . assertTrue ( ( ( count . get ( ) ) > 0 ) )
getActiveProfiles ( ) { java . util . List < org . apache . maven . shared . model . ModelProperty > modelProperties = new java . util . ArrayList < org . apache . maven . shared . model . ModelProperty > ( ) ; modelProperties . add ( new org . apache . maven . shared . model . ModelProperty ( org . apache . maven . pr...
org . junit . Assert . assertTrue ( ( ( profiles . size ( ) ) == 1 ) )
testLargeEWAHCompressedBitmap ( ) { System . out . println ( "testing<sp>EWAH<sp>over<sp>a<sp>large<sp>array" ) ; com . googlecode . javaewah . EWAHCompressedBitmap myarray1 = new com . googlecode . javaewah . EWAHCompressedBitmap ( ) ; int N = 11000000 ; for ( int i = 0 ; i < N ; ++ i ) { myarray1 . set ( i ) ; } "<As...
org . junit . Assert . assertTrue ( ( ( myarray1 . sizeInBits ( ) ) == N ) )
testThenReturnNull ( ) { try { java . lang . Void result = client . service ( "serviceTest" ) . thenConsume ( new com . aldebaran . qi . Consumer < com . aldebaran . qi . Future < com . aldebaran . qi . AnyObject > > ( ) { @ com . aldebaran . qi . Override public void consume ( com . aldebaran . qi . Future < com . ald...
org . junit . Assert . assertNull ( result )
test0xFFInBinaryStream ( ) { byte [ ] b1 = new byte [ ] { 1 , 2 , 3 , ( ( byte ) ( 255 ) ) , 10 , 1 , 2 , 3 } ; byte [ ] b2 = new byte [ ] { 10 } ; org . apache . james . mime4j . io . BufferedLineReaderInputStream inbuffer = org . apache . james . mime4j . io . BufferedLineReaderInputStreamBufferTest . create ( b1 ) ;...
org . junit . Assert . assertEquals ( 4 , i )
testBuildWithParametersWithDisabledDEfaultConstraints ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; org . lnu . is . domain . person . Person person = new org . lnu . is . domain . person . Person ( ) ; org . lnu . is . domain . paper . type . PaperType paperType = new org . lnu . is . domain . pape...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testPosition ( ) { java . awt . Point p1 = new java . awt . Point ( 1 , 2 ) ; graphNode . setPos ( p1 ) ; java . awt . Point p2 = graphNode . getPos ( ) ; "<AssertPlaceHolder>" ; } getPos ( ) { return displayPosition ; }
org . junit . Assert . assertEquals ( p1 , p2 )
testValidateFileTypePdfFile ( ) { org . apache . commons . fileupload . FileItem newFileItem = createFileItem ( "/content/test.pdf" ) ; boolean validateFileType = com . github . bordertech . wcomponents . util . FileUtil . validateFileType ( new com . github . bordertech . wcomponents . file . FileItemWrap ( newFileIte...
org . junit . Assert . assertTrue ( validateFileType )
testResourceManagerAdded ( ) { final org . apache . oozie . fluentjob . api . action . HiveActionBuilder builder = getBuilderInstance ( ) ; builder . withResourceManager ( org . apache . oozie . fluentjob . api . action . TestHiveActionBuilder . RESOURCE_MANAGER ) ; final org . apache . oozie . fluentjob . api . action...
org . junit . Assert . assertEquals ( org . apache . oozie . fluentjob . api . action . TestHiveActionBuilder . RESOURCE_MANAGER , action . getResourceManager ( ) )
assertExecuteUpdateForSingleStatementSuccess ( ) { java . sql . Statement statement = getStatement ( ) ; when ( statement . executeUpdate ( org . apache . shardingsphere . shardingjdbc . executor . StatementExecutorTest . DML_SQL ) ) . thenReturn ( 10 ) ; setExecuteGroups ( java . util . Collections . singletonList ( s...
org . junit . Assert . assertThat ( actual . executeUpdate ( ) , org . hamcrest . CoreMatchers . is ( 10 ) )
parse_timezone ( ) { biweekly . util . UtcOffset expected = new biweekly . util . UtcOffset ( true , 1 , 0 ) ; biweekly . util . UtcOffset actual = biweekly . util . UtcOffset . parse ( biweekly . util . TestUtils . buildTimezone ( 1 , 0 ) ) ; "<AssertPlaceHolder>" ; } buildTimezone ( int , int ) { int hourMillis = ( (...
org . junit . Assert . assertEquals ( expected , actual )
executeWithReadOnlyStatementShouldRunAndReturnCorrectData ( ) { org . neo4j . jdbc . http . Connection connection = org . neo4j . jdbc . http . DriverManager . getConnection ( getJDBCUrl ( ) ) ; org . neo4j . jdbc . http . PreparedStatement statement = connection . prepareStatement ( "MATCH<sp>(m:Movie)<sp>WHERE<sp>m.t...
org . junit . Assert . assertTrue ( statement . execute ( ) )
testSetMetric ( ) { ipExtendedReachabilityTlv . setMetric ( 10 ) ; result2 = ipExtendedReachabilityTlv . metric ( ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; }
org . junit . Assert . assertThat ( result2 , org . hamcrest . CoreMatchers . is ( 10 ) )
staticReferencesAreNotEligible ( ) { java . util . List < java . lang . reflect . Field > field = net . openhft . lang . io . serialization . direct . DirectSerializationFilterTest . fieldsNamed ( "staticStringList" ) ; "<AssertPlaceHolder>" ; } stopAtFirstIneligibleField ( java . util . List ) { java . util . ArrayLis...
org . junit . Assert . assertTrue ( net . openhft . lang . io . serialization . direct . DirectSerializationFilter . stopAtFirstIneligibleField ( field ) . isEmpty ( ) )
repaintPropertySetLeadsToInvalidation ( ) { final jetbrains . jetpad . base . Value < java . lang . Boolean > repaintCalled = new jetbrains . jetpad . base . Value ( false ) ; jetbrains . jetpad . projectional . view . View view = new jetbrains . jetpad . projectional . view . ViewTest . MyView ( ) { @ jetbrains . jetp...
org . junit . Assert . assertTrue ( repaintCalled . get ( ) )
testReadWriteComposite ( ) { java . io . InputStream is = getClass ( ) . getResourceAsStream ( "Calculator.composite" ) ; org . apache . tuscany . sca . assembly . Composite composite = ( ( org . apache . tuscany . sca . assembly . Composite ) ( org . apache . tuscany . sca . binding . ws . xml . WriteTestCase . staxPr...
org . junit . Assert . assertNotNull ( composite )
suggestionIndexingRuleHierarchy ( ) { java . lang . String indexNodeType = "nt:base" ; java . lang . String queryNodeType = "nt:unstructured" ; boolean enableSuggestionIndex = true ; boolean enableSpellcheckIndex = false ; boolean queryForSugggestion = true ; org . apache . jackrabbit . oak . plugins . index . lucene ....
org . junit . Assert . assertNull ( plan )
testDerivePublicKey ( ) { for ( net . named_data . jndn . tests . unit_tests . TestTpmPrivateKey . KeyTestData dataSet : keyTestData ) { byte [ ] pkcs8 = net . named_data . jndn . util . Common . base64Decode ( dataSet . privateKeyPkcs8Unencrypted ) ; net . named_data . jndn . security . tpm . TpmPrivateKey key = new n...
org . junit . Assert . assertTrue ( publicKeyBits . equals ( new net . named_data . jndn . util . Blob ( expected ) ) )
testGetLatestStepExecutionSkipCount ( ) { prepareServiceWithSingleStepExecution ( ) ; "<AssertPlaceHolder>" ; } getLatestSkipCount ( ) { org . springframework . batch . core . StepExecution stepExecution = getLatestStepExecution ( stepName ) ; return stepExecution == null ? 0 : stepExecution . getSkipCount ( ) ; }
org . junit . Assert . assertEquals ( 0 , metrics . getLatestSkipCount ( ) )
should_update_success ( ) { com . flow . platform . api . domain . EmailSettingContent emailSetting = new com . flow . platform . api . domain . EmailSettingContent ( "smtp.163.com" , 465 , "xxxx@163.com" ) ; org . springframework . test . web . servlet . request . MockHttpServletRequestBuilder content = post ( "/messa...
org . junit . Assert . assertNull ( setting . getPassword ( ) )
shouldFailConnectionWhenResponseHeaderSecWebSocketExtensionsNotNegotiated ( ) { final org . apache . mina . core . service . IoHandler handler = context . mock ( org . apache . mina . core . service . IoHandler . class ) ; context . checking ( new org . kaazing . gateway . transport . test . Expectations ( ) { { never ...
org . junit . Assert . assertFalse ( connectFuture . isConnected ( ) )
testGetPlaceholder ( ) { com . box . l10n . mojito . service . assetintegritychecker . integritychecker . PrintfLikeIntegrityChecker checker = new com . box . l10n . mojito . service . assetintegritychecker . integritychecker . PrintfLikeIntegrityChecker ( ) ; java . lang . String string = "%1$ld<sp><sp>%2$@<sp><sp><sp...
org . junit . Assert . assertEquals ( expected , placeholders )
concurrentTest ( ) { int threads = 100 ; final java . util . concurrent . CyclicBarrier barrier = new java . util . concurrent . CyclicBarrier ( ( threads + 1 ) ) ; for ( int i = 0 ; i < threads ; i ++ ) { new java . lang . Thread ( ) { public void run ( ) { try { barrier . await ( ) ; for ( int i = 0 ; i < 10000 ; i +...
org . junit . Assert . assertEquals ( 10 , map . size ( ) )
testParseNullLabelsInUserLabels ( ) { "<AssertPlaceHolder>" ; } userLabels ( java . util . Map ) { if ( userLabels != null ) { for ( java . lang . String key : userLabels . keySet ( ) ) { if ( ( key . startsWith ( io . strimzi . operator . common . model . Labels . STRIMZI_DOMAIN ) ) && ( ! ( key . equals ( io . strimz...
org . junit . Assert . assertEquals ( Labels . EMPTY , io . strimzi . operator . common . model . Labels . userLabels ( null ) )
isOverlappingInputMatchingDeltaBase ( ) { org . batfish . coordinator . WorkDetails details1 = _builder . setSnapshotId ( new org . batfish . identifiers . SnapshotId ( "t1" ) ) . setReferenceSnapshotId ( new org . batfish . identifiers . SnapshotId ( "t2" ) ) . setIsDifferential ( true ) . build ( ) ; org . batfish . ...
org . junit . Assert . assertTrue ( details1 . isOverlappingInput ( details2 ) )
testFindElementByTagName ( ) { java . util . Random random = new java . util . Random ( ) ; org . openqa . selenium . WebElement text = com . sugarcrm . candybean . examples . mobile . AppiumIosTest . driver . findElement ( org . openqa . selenium . By . tagName ( "textField" ) ) ; int number = ( random . nextInt ( ( (...
org . junit . Assert . assertEquals ( sumLabel . getText ( ) , java . lang . String . valueOf ( number ) )
testConstants ( ) { java . lang . reflect . Constructor < org . ff4j . store . mongodb . FeatureStoreMongoConstants > ce = org . ff4j . store . mongodb . FeatureStoreMongoConstants . class . getDeclaredConstructor ( ) ; ce . setAccessible ( true ) ; ce . newInstance ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( ce )
testAsymmetric ( ) { final uk . gov . dstl . baleen . types . common . Person p = new uk . gov . dstl . baleen . types . common . Person ( jCas ) ; p . addToIndexes ( ) ; final uk . gov . dstl . baleen . types . semantic . Location l = new uk . gov . dstl . baleen . types . semantic . Location ( jCas ) ; p . addToIndex...
org . junit . Assert . assertEquals ( 1 , select . size ( ) )
shouldIdentifyContentObjectsWithNoBodyAsBeingEqual ( ) { "<AssertPlaceHolder>" ; } equals ( java . lang . Object , java . lang . Object ) { if ( ( expectedObj == null ) || ( actualObj == null ) ) { return false ; } java . util . Collection < smartrics . rest . client . RestData . Header > expected = ( ( java . util . C...
org . junit . Assert . assertFalse ( adapter . equals ( null , null ) )
testRemoveEventsForUsers ( ) { java . util . List < com . serotonin . m2m2 . vo . User > users = createUsers ( 2 , SuperadminPermissionDefinition . GROUP_NAME ) ; int cleanerPeriod = 10000 ; int timeToLive = cleanerPeriod * 4 ; int eventCount = 100 ; this . cache = new com . serotonin . m2m2 . rt . event . UserEventCac...
org . junit . Assert . assertEquals ( ( eventCount - 2 ) , this . cache . getCache ( ) . size ( ) )
testOnException ( ) { java . util . concurrent . atomic . AtomicReference < org . slieb . throwables . java . lang . Throwable > reference = new java . util . concurrent . atomic . AtomicReference ( ) ; org . slieb . throwables . java . lang . Exception expected = new org . slieb . throwables . java . lang . Exception ...
org . junit . Assert . assertEquals ( expected , reference . get ( ) )
testChooseRandomExcludedNode ( ) { java . lang . String scope = "~" + ( org . apache . hadoop . net . NodeBase . getPath ( dataNodes [ 0 ] ) ) ; java . util . Map < org . apache . hadoop . net . Node , java . lang . Integer > frequency = pickNodesAtRandom ( 100 , scope ) ; for ( org . apache . hadoop . net . Node key :...
org . junit . Assert . assertTrue ( ( ( ( frequency . get ( key ) ) > 0 ) || ( key == ( dataNodes [ 0 ] ) ) ) )
distinctReducerReturnsCommonValueIfAllValuesAreSame ( ) { io . datakernel . jmx . JmxReducerDistinct reducer = new io . datakernel . jmx . JmxReducerDistinct ( ) ; java . util . List < java . lang . String > input = asList ( "data" , "data" , "data" ) ; "<AssertPlaceHolder>" ; } reduce ( io . datakernel . functional . ...
org . junit . Assert . assertEquals ( "data" , reducer . reduce ( input ) )
write_ValidImage_WriterCanCompress_NoCompressionTypeFromWriter ( ) { javax . imageio . ImageWriteParam iwParam = mock ( javax . imageio . ImageWriteParam . class ) ; javax . imageio . ImageWriter writer = mock ( javax . imageio . ImageWriter . class ) ; javax . imageio . spi . ImageWriterSpi spi = mock ( javax . imagei...
org . junit . Assert . assertEquals ( outputFile , sink . getSink ( ) )
testDeserializeJsonParserDeserializationContextWithNull ( ) { org . codehaus . jackson . map . ObjectMapper mapper = createObjectMapper ( ) ; java . lang . String json = "{\"email\":null}" ; br . com . insula . opes . json . deserializer . EmailJsonDeserializerTest . Teste teste = mapper . readValue ( json , br . com ....
org . junit . Assert . assertNull ( teste . getEmail ( ) )
testUniqueConstraintsViolation ( ) { if ( com . splicemachine . derby . impl . load . HBaseBulkLoadIndexIT . notSupported ) return ; try { methodWatcher . execute ( java . lang . String . format ( "create<sp>unique<sp>index<sp>bi<sp>on<sp>b(i)<sp>auto<sp>splitkeys<sp>hfile<sp>location<sp>'%s'" , com . splicemachine . d...
org . junit . Assert . assertEquals ( expected , errorMessage )
testIntersection2 ( ) { tl . lin . data . array . ArrayListOfDoubles a = new tl . lin . data . array . ArrayListOfDoubles ( ) ; a . add ( 5 ) ; tl . lin . data . array . ArrayListOfDoubles b = new tl . lin . data . array . ArrayListOfDoubles ( ) ; b . add ( 0 ) . add ( 1 ) . add ( 2 ) . add ( 3 ) ; tl . lin . data . ar...
org . junit . Assert . assertTrue ( ( ( c . size ( ) ) == 0 ) )
noEventsForTouchedProperties ( ) { final java . lang . String testNodeName = "test_touched_node" ; final java . lang . String testNodePath = '/' + testNodeName ; javax . jcr . Session session = getAdminSession ( ) ; javax . jcr . Node testNode = session . getRootNode ( ) . addNode ( testNodeName ) ; testNode . setPrope...
org . junit . Assert . assertEquals ( 1 , events . size ( ) )
testSearchBusinessObjectDefinitionsOnlyShortDescriptionAndDataProviderName ( ) { java . util . Set < org . finra . herd . model . api . xml . BusinessObjectDefinition > expectedBusinessObjectDefinitions = setUpTestEntitiesForSearchTesting ( ) ; for ( org . finra . herd . model . api . xml . BusinessObjectDefinition bus...
org . junit . Assert . assertEquals ( actualBusinessObjectDefinitions , expectedBusinessObjectDefinitions )
doesNotAcceptArguments ( ) { joptsimple . OptionDescriptor nonOptions = parser . nonOptions ( ) . describedAs ( "dirs" ) ; "<AssertPlaceHolder>" ; } acceptsArguments ( ) { return false ; }
org . junit . Assert . assertFalse ( nonOptions . acceptsArguments ( ) )
localDateTime ( ) { java . time . LocalDateTime localDateTime = java . time . LocalDateTime . of ( 2016 , 2 , 24 , 5 , 55 ) ; javax . ws . rs . ext . ParamConverter < java . time . LocalDateTime > converter = ( ( javax . ws . rs . ext . ParamConverter < java . time . LocalDateTime > ) ( provider . getConverter ( localD...
org . junit . Assert . assertEquals ( localDateTime , converter . fromString ( converter . toString ( localDateTime ) ) )
testSDIV_4 ( ) { org . ethereum . vm . VM vm = new org . ethereum . vm . VM ( ) ; program = new org . ethereum . vm . Program ( org . spongycastle . util . encoders . Hex . decode ( "60FF05" ) , invoke ) ; try { vm . step ( program ) ; vm . step ( program ) ; } finally { "<AssertPlaceHolder>" ; } } isStopped ( ) { retu...
org . junit . Assert . assertTrue ( program . isStopped ( ) )
testSetGetCreationTime ( ) { System . out . println ( "testSetGetCreationTime" ) ; gov . hhs . fha . nhinc . asyncmsgs . model . AsyncMsgRecord instance = new gov . hhs . fha . nhinc . asyncmsgs . model . AsyncMsgRecord ( ) ; java . util . Date expResult = new java . util . Date ( ) ; instance . setCreationTime ( expRe...
org . junit . Assert . assertEquals ( expResult , result )
testSpecEnableCountingFALSE ( ) { com . hp . hpl . jena . rdf . model . Model m = com . epimorphics . jsonrdf . utils . ModelIOUtils . modelFromTurtle ( ":my<sp>a<sp>api:API;<sp>elda:enableCounting<sp>false;<sp>api:sparqlEndpoint<sp>:spoo" ) ; com . hp . hpl . jena . rdf . model . Resource root = m . createResource ( m...
org . junit . Assert . assertEquals ( Boolean . FALSE , s . getEnableCounting ( ) )
testGetJDKProxyEnvProxyHasUserInfo ( ) { com . aliyuncs . http . HttpRequest request = mock ( com . aliyuncs . http . HttpRequest . class ) ; java . net . Proxy proxy = com . aliyuncs . http . HttpUtil . getJDKProxy ( null , "http://user:passwd@www.aliyun.com" , request ) ; "<AssertPlaceHolder>" ; } getJDKProxy ( java ...
org . junit . Assert . assertNotNull ( proxy )
testForwardScanForRecordAfterLedger ( ) { java . lang . String streamName = runtime . getMethodName ( ) ; org . apache . distributedlog . BKDistributedLogManager bkdlm = ( ( org . apache . distributedlog . BKDistributedLogManager ) ( createNewDLM ( conf , streamName ) ) ) ; org . apache . distributedlog . DLMTestUtil ....
org . junit . Assert . assertEquals ( null , logrec )
validateHeaderAll ( ) { javax . xml . transform . Source testXml = new javax . xml . transform . stream . StreamSource ( new org . springframework . core . io . ClassPathResource ( sample_wrong ) . getInputStream ( ) ) ; try { schematron . validate ( testXml , new org . openehealth . ipf . commons . xml . SchematronPro...
org . junit . Assert . assertEquals ( 20 , ex . getCauses ( ) . length )