input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
shouldAndWhereConditionsFromOneWhereClauseSqlGenerator ( ) { java . lang . String selectClause = uniqueString ( ) ; java . lang . String fromClause = uniqueString ( ) ; setupSelectAndFromClause ( selectClause , fromClause ) ; java . lang . String whereCondition1 = "a" + ( uniqueString ( ) ) ; java . lang . String where...
org . junit . Assert . assertThat ( sql , org . hamcrest . CoreMatchers . is ( expected ) )
verifyContentWithSeparateSignatureWrongContent ( ) { java . io . InputStream message = new java . io . ByteArrayInputStream ( "Wrong<sp>Message" . getBytes ( ) ) ; java . io . InputStream signature = this . getClass ( ) . getClassLoader ( ) . getResourceAsStream ( "detached_signature.binary" ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertNotNull ( signature )
itHasATotal ( ) { final com . wesabe . xmlson . XmlsonObject representation = presenter . present ( accounts , com . wesabe . api . accounts . presenters . tests . USD , Locale . PRC ) ; final com . wesabe . xmlson . XmlsonObject total = ( ( com . wesabe . xmlson . XmlsonObject ) ( representation . get ( "total" ) ) ) ...
org . junit . Assert . assertThat ( total . getName ( ) , org . hamcrest . CoreMatchers . is ( "total" ) )
givenAccessGuardWith2ConditionsWhenAwaitThenTimeoutAndReturnFalse ( ) { org . neo4j . logging . Log log = mock ( org . neo4j . logging . Log . class ) ; org . neo4j . kernel . availability . DatabaseAvailabilityGuard databaseAvailabilityGuard = org . neo4j . kernel . DatabaseAvailabilityGuardTest . getDatabaseAvailabil...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . equalTo ( false ) )
testIsAccessPointAvailableNoScanTool ( ) { org . eclipse . kura . net . admin . monitor . WifiMonitorServiceImpl svc = new org . eclipse . kura . net . admin . monitor . WifiMonitorServiceImpl ( ) { @ org . eclipse . kura . net . admin . monitor . Override protected org . eclipse . kura . linux . net . util . IScanTool...
org . junit . Assert . assertFalse ( available )
givenVavrFunction_whenWorks_thenCorrect ( ) { io . vavr . Function1 < java . lang . Integer , java . lang . Integer > square = ( num ) -> num * num ; java . lang . Integer result = square . apply ( 2 ) ; "<AssertPlaceHolder>" ; } apply ( java . math . BigDecimal ) { return amount . multiply ( java . math . BigDecimal ....
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 4 ) , result )
testEmptySetToEmptyString_OK ( ) { org . vaadin . example . customer . CollectionToCommaSeparatedStringConverter converter = new org . vaadin . example . customer . CollectionToCommaSeparatedStringConverter ( ) ; java . util . Set < java . lang . String > setValue = new java . util . HashSet ( ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertEquals ( "" , converter . convertToModel ( setValue , java . lang . String . class , null ) )
testSend ( ) { final net . violet . platform . api . actions . Action theAction = new net . violet . platform . api . actions . messages . SendTTSMessage ( ) ; final net . violet . platform . datamodel . Application theApplication = new net . violet . platform . datamodel . mock . ApplicationMock ( 12 , "My<sp>first<sp...
org . junit . Assert . assertNull ( theResult )
testCidParameterReadLazily ( ) { java . net . HttpURLConnection con = ( ( java . net . HttpURLConnection ) ( url . openConnection ( ) ) ) ; con . setRequestMethod ( "POST" ) ; int responseCode = con . getResponseCode ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 200 , responseCode )
testLookupAbsoluteParentWhenReferenceDoesNotHaveParent ( ) { final org . kie . workbench . common . dmn . client . editors . types . common . DataType reference = mock ( org . kie . workbench . common . dmn . client . editors . types . common . DataType . class ) ; final java . lang . String parentUUID = "parentUUID" ;...
org . junit . Assert . assertFalse ( absoluteParent . isPresent ( ) )
testSetOutboundStandardMode ( ) { gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry registry = gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry . getInstance ( ) ; gov . hhs . fha . nhinc . configuration . IConfiguration . serviceEnum serviceName = gov . hhs . fha . nhinc . co...
org . junit . Assert . assertEquals ( true , standard )
testCheckForNonExclusion2 ( ) { edu . cornell . mannlib . vitro . webapp . searchindex . exclusions . ExcludeBasedOnType ebot = new edu . cornell . mannlib . vitro . webapp . searchindex . exclusions . ExcludeBasedOnType ( ) ; ebot . addTypeToExclude ( "http://xmlns.com/foaf/0.1/Person" ) ; edu . cornell . mannlib . vi...
org . junit . Assert . assertNull ( excludeResult )
no_triangle ( ) { try { triangulate ( new org . eclipse . gef . geometry . planar . Polygon ( 0 , 0 , 1 , 0 , 1 , 1 , 0 , 1 ) , new org . eclipse . gef . geometry . planar . Point ( 0 , 0 ) , new org . eclipse . gef . geometry . planar . Point ( 1 , 1 ) ) ; } catch ( java . lang . IllegalStateException x ) { java . lan...
org . junit . Assert . assertTrue ( cause . getClass ( ) . equals ( org . eclipse . gef . geometry . tests . IllegalArgumentException . class ) )
test_success_get_principal_by_names_empty_names ( ) { java . util . ArrayList < java . lang . String > names = new java . util . ArrayList < java . lang . String > ( ) ; java . util . List < org . ikasan . security . model . IkasanPrincipal > principals = this . xaSecurityService . getPrincipalsByName ( names ) ; "<Ass...
org . junit . Assert . assertTrue ( ( ( principals . size ( ) ) == 0 ) )
testAsyncTake ( ) { org . springframework . batch . admin . util . ThrottledTaskExecutor service = new org . springframework . batch . admin . util . ThrottledTaskExecutor ( new org . springframework . core . task . SimpleAsyncTaskExecutor ( ) ) ; java . util . concurrent . FutureTask < java . lang . String > task = ne...
org . junit . Assert . assertEquals ( "foo" , task . get ( ) )
testMath785 ( ) { try { double prob = 0.01 ; org . hipparchus . distribution . continuous . FDistribution f = new org . hipparchus . distribution . continuous . FDistribution ( 200000 , 200000 ) ; double result = f . inverseCumulativeProbability ( prob ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) {...
org . junit . Assert . assertTrue ( ( result < 1.0 ) )
shouldInstantiateNode0 ( ) { com . spotify . trickle . TrickleNode node = com . spotify . trickle . TrickleNode . create ( new com . spotify . trickle . Func0 < java . lang . Object > ( ) { @ com . spotify . trickle . Override public com . google . common . util . concurrent . ListenableFuture < java . lang . Object > ...
org . junit . Assert . assertThat ( node . run ( com . google . common . collect . ImmutableList . of ( ) ) . get ( ) , org . hamcrest . CoreMatchers . equalTo ( result ) )
testGetCommand ( ) { final org . kie . workbench . common . widgets . client . handlers . NewResourcePresenter presenter = mock ( org . kie . workbench . common . widgets . client . handlers . NewResourcePresenter . class ) ; final org . uberfire . mvp . Command command = handler . getCommand ( presenter ) ; "<AssertPl...
org . junit . Assert . assertNotNull ( command )
createDynamicModule ( ) { de . devsurf . injection . guice . scanner . StartupModule startup = de . devsurf . injection . guice . scanner . StartupModule . create ( de . devsurf . injection . guice . scanner . asm . ASMClasspathScanner . class , de . devsurf . injection . guice . scanner . PackageFilter . create ( de ....
org . junit . Assert . assertNotNull ( injector )
serializeDeserializeTest ( ) { for ( boolean includeContentLen : new boolean [ ] { true , false } ) { for ( boolean isFinalFrame : new boolean [ ] { true , false } ) { "<AssertPlaceHolder>" ; } } } serializeDeserialize ( boolean , boolean ) { final byte [ ] headerBytes = createHeaderBytes ( includeContentLen , isFinalF...
org . junit . Assert . assertTrue ( serializeDeserialize ( includeContentLen , isFinalFrame ) )
shouldReportValidXLogPos ( ) { try ( io . debezium . connector . postgresql . connection . PostgresConnection connection = io . debezium . connector . postgresql . TestHelper . create ( ) ) { connection . connect ( ) ; "<AssertPlaceHolder>" ; } } currentXLogLocation ( ) { java . util . concurrent . atomic . AtomicLong ...
org . junit . Assert . assertTrue ( ( ( connection . currentXLogLocation ( ) ) > 0 ) )
shouldRunConvertCommand ( ) { org . bukkit . command . CommandSender sender = mock ( org . bukkit . command . CommandSender . class ) ; org . bukkit . command . Command command = me . gnat008 . perworldinventory . PerworldInventoryCommandHandlingTest . newCommandWithName ( "Pwi" ) ; given ( convertCommand . getRequired...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( true ) )
testLifecycleCertsDisabled ( ) { boolean enable = org . eclipse . kura . core . cloud . CloudServiceOptionsTest . options . isLifecycleCertsDisabled ( ) ; "<AssertPlaceHolder>" ; } isLifecycleCertsDisabled ( ) { boolean birthPubDisabled = false ; java . lang . String birthPubPolicy = "" ; if ( ( ( this . properties ) !...
org . junit . Assert . assertTrue ( enable )
removeSalePositionTest ( ) { System . out . print ( "-><sp>removeSalePositions()<sp>-<sp>" ) ; ua . com . alexcoffee . model . order . Order order = ua . com . alexcoffee . model . order . Order . getBuilder ( ) . build ( ) ; ua . com . alexcoffee . model . position . SalePosition salePosition = new ua . com . alexcoff...
org . junit . Assert . assertEquals ( order . getSalePositions ( ) . size ( ) , 10 )
infiniteLoopTerminatesAtMaxTest ( ) { java . lang . String str = "" ; str += "package<sp>org.drools.compiler.integrationtests<sp>\n" ; str += ( "<sp>\n" 0 + ( org . drools . compiler . Cheese . class . getCanonicalName ( ) ) ) + "<sp>\n" ; str += "rule<sp>StringRule<sp>\n" ; str += "<sp>when<sp>\n" ; str += "<sp>\n" 1 ...
org . junit . Assert . assertEquals ( 10 , fired )
testConstructor_StringFile ( ) { java . io . File file = mock ( java . io . File . class ) ; when ( file . exists ( ) ) . thenReturn ( true ) ; org . pentaho . platform . config . PropertiesFileConfiguration config = new org . pentaho . platform . config . PropertiesFileConfiguration ( "id" , file ) ; "<AssertPlaceHold...
org . junit . Assert . assertEquals ( "id" , config . getId ( ) )
should_find_with_queryresult ( ) { final java . lang . String name = "should_find_with_queryresult" ; org . apache . deltaspike . data . test . domain . Simple simple = new org . apache . deltaspike . data . test . domain . Simple ( name ) ; simple . setEnabled ( Boolean . TRUE ) ; getEntityManager ( ) . persist ( simp...
org . junit . Assert . assertTrue ( ( ( result . size ( ) ) > 0 ) )
testApproxMedianSingleValue ( ) { org . jaitools . numeric . StreamingSampleStats streamStats = new org . jaitools . numeric . StreamingSampleStats ( ) ; streamStats . setStatistic ( Statistic . APPROX_MEDIAN ) ; streamStats . offer ( singleValue ) ; "<AssertPlaceHolder>" ; } getStatisticValue ( org . jaitools . numeri...
org . junit . Assert . assertEquals ( singleValue , streamStats . getStatisticValue ( Statistic . APPROX_MEDIAN ) )
testHealthCheck ( ) { java . util . List < org . kie . server . api . model . Message > healthMessages = kieServer . healthCheck ( false ) ; "<AssertPlaceHolder>" ; } size ( ) { return people . size ( ) ; }
org . junit . Assert . assertEquals ( healthMessages . size ( ) , 0 )
testSuccessfulMatch ( ) { org . graylog2 . plugin . streams . StreamRule rule = getSampleRule ( ) ; rule . setValue ( "100" ) ; org . graylog2 . plugin . Message msg = getSampleMessage ( ) ; msg . addField ( "something" , "20" ) ; org . graylog2 . streams . matchers . StreamRuleMatcher matcher = getMatcher ( rule ) ; "...
org . junit . Assert . assertTrue ( matcher . match ( msg , rule ) )
firstTest ( ) { com . microsoft . azure . management . compute . v2018_04_01 . ComputeTest . rgName = com . microsoft . azure . arm . utils . SdkContext . randomResourceName ( "rg" , 20 ) ; com . microsoft . azure . management . resources . ResourceGroup group = com . microsoft . azure . management . compute . v2018_04...
org . junit . Assert . assertNotNull ( group )
testQuitElection ( ) { elector . joinElection ( data ) ; org . mockito . Mockito . verify ( mockZK , org . mockito . Mockito . times ( 0 ) ) . close ( ) ; elector . quitElection ( true ) ; org . mockito . Mockito . verify ( mockZK , org . mockito . Mockito . times ( 1 ) ) . close ( ) ; verifyExistCall ( 0 ) ; byte [ ] ...
org . junit . Assert . assertEquals ( 2 , count )
testValues ( ) { com . redhat . lightblue . query . UpdateOperator [ ] expResult = new com . redhat . lightblue . query . UpdateOperator [ ] { UpdateOperator . _set , UpdateOperator . _unset , UpdateOperator . _add , UpdateOperator . _append , UpdateOperator . _insert , UpdateOperator . _foreach } ; com . redhat . ligh...
org . junit . Assert . assertArrayEquals ( expResult , result )
should_use_scenario_location_when_before_hook_fails ( ) { cucumber . runtime . model . CucumberFeature feature = cucumber . runner . TestHelper . feature ( "<sp>Given<sp>first<sp>step\n" 1 , ( "" + ( ( ( ( "Feature:<sp>feature<sp>name\n" + "<sp>Scenario:<sp>scenario<sp>name\n" ) + "<sp>Given<sp>first<sp>step\n" ) + "<s...
org . junit . Assert . assertEquals ( "<sp>Given<sp>first<sp>step\n" 3 , formatterOutput )
testGetSampleTypes ( ) { java . util . List < ca . on . oicr . pinery . api . Type > sampleTypes = sut . getTypes ( ) ; "<AssertPlaceHolder>" ; } size ( ) { return map . size ( ) ; }
org . junit . Assert . assertTrue ( ( ( sampleTypes . size ( ) ) > 2 ) )
allOnMessage ( ) { org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveSwitchAllCommandClass cls = ( ( org . openhab . binding . zwave . internal . protocol . commandclass . ZWaveSwitchAllCommandClass ) ( getCommandClass ( CommandClass . COMMAND_CLASS_SWITCH_ALL ) ) ) ; org . openhab . binding ....
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( msg . getPayloadBuffer ( ) , expectedResponseV1 ) )
testValueDescriptionTruncation ( ) { cern . c2mon . server . common . datatag . DataTagCacheObject dataTag = new cern . c2mon . server . common . datatag . DataTagCacheObject ( java . lang . Long . valueOf ( 2 ) , "test<sp>name" , "Float" , cern . c2mon . shared . common . datatag . DataTagConstants . MODE_OPERATIONAL ...
org . junit . Assert . assertEquals ( dataTag . getValueDescription ( ) , takenDesc )
shouldBeLessEqual ( ) { org . jboss . arquillian . container . jetty . embedded_7 . VersionUtil . Version less = org . jboss . arquillian . container . jetty . embedded_7 . VersionUtil . extract ( "7.1" ) ; org . jboss . arquillian . container . jetty . embedded_7 . VersionUtil . Version then = org . jboss . arquillian...
org . junit . Assert . assertTrue ( org . jboss . arquillian . container . jetty . embedded_7 . VersionUtil . isLessThenOrEqual ( less , then ) )
getNonExistent ( ) { final java . nio . file . Path blobDbx = temporaryFolder . getRoot ( ) . toPath ( ) . resolve ( "blob.dbx" ) ; final java . nio . file . Path blobDir = temporaryFolder . newFolder ( "blob" ) . toPath ( ) ; final com . evolvedbinary . j8fu . tuple . Tuple2 < byte [ ] , org . exist . util . crypto . ...
org . junit . Assert . assertNull ( blobStore . get ( null , nonExistent ) )
testHasChangesRealModify ( ) { org . apache . cayenne . testdo . testmap . Artist artist = ( ( org . apache . cayenne . testdo . testmap . Artist ) ( context . newObject ( "Artist" ) ) ) ; artist . setArtistName ( "ArtistName" ) ; context . commitChanges ( ) ; artist . setArtistName ( "Something<sp>different" ) ; "<Ass...
org . junit . Assert . assertTrue ( context . hasChanges ( ) )
staticArrayBufferTest ( ) { long [ ] values = new long [ ] { 2342342342L , 2342 , 0 , - 1 , - 214252345234L } ; byte [ ] array = new byte [ ( values . length ) * 8 ] ; for ( int i = 0 ; i < ( values . length ) ; i ++ ) { com . thinkaurelius . titan . diskstorage . util . StaticArrayBuffer . putLong ( array , ( i * 8 ) ...
org . junit . Assert . assertEquals ( values [ i ] , com . thinkaurelius . titan . diskstorage . util . StaticArrayBuffer . getLong ( array , ( i * 8 ) ) )
getAllJobs_should_get_job_names_for_all_group_name ( ) { final org . quartz . JobKey job1 = org . quartz . JobKey . jobKey ( "job1" , "aGroup" ) ; final org . quartz . JobKey job2 = org . quartz . JobKey . jobKey ( "job2" , "aGroup" ) ; final org . quartz . JobKey job3 = org . quartz . JobKey . jobKey ( "job3" , "anoth...
org . junit . Assert . assertThat ( jobs )
bestErrorMessageEmptyErrorMessage ( ) { final java . lang . String errorReason = "" ; java . lang . String bestMessage = com . microsoft . azure . sdk . iot . deps . serializer . ErrorMessageParser . bestErrorMessage ( errorReason ) ; "<AssertPlaceHolder>" ; } bestErrorMessage ( java . lang . String ) { if ( rootExcept...
org . junit . Assert . assertEquals ( "" , bestMessage )
ifWorkingIsFalse_workingValidationFails ( ) { org . baeldung . User user = new org . baeldung . User ( ) ; user . setName ( "MyName" ) ; user . setAboutMe ( "Its<sp>all<sp>about<sp>me!!" ) ; user . setAge ( 50 ) ; java . util . Set < javax . validation . ConstraintViolation < org . baeldung . User > > violations = vali...
org . junit . Assert . assertEquals ( violations . isEmpty ( ) , false )
testBasicConnection ( ) { javax . xml . namespace . QName serviceName = new javax . xml . namespace . QName ( "http://type_substitution.systest.cxf.apache.org/" , "AppleFinder" ) ; javax . xml . namespace . QName portName = new javax . xml . namespace . QName ( "http://type_substitution.systest.cxf.apache.org/" , "Appl...
org . junit . Assert . assertEquals ( 2 , finder . getApple ( "Fuji" ) . size ( ) )
orQuery ( ) { final com . yandex . yoctodb . mutable . DatabaseBuilder dbBuilder = com . yandex . yoctodb . DatabaseFormat . getCurrent ( ) . newDatabaseBuilder ( ) ; dbBuilder . merge ( com . yandex . yoctodb . DatabaseFormat . getCurrent ( ) . newDocumentBuilder ( ) . withField ( "text" , "doc1234" , com . yandex . y...
org . junit . Assert . assertEquals ( 2 , db . count ( q ) )
testNonGenericExtends ( ) { final cz . habarta . typescript . generator . Settings settings = cz . habarta . typescript . generator . TestUtils . settings ( ) ; settings . sortDeclarations = true ; final java . io . StringWriter stringWriter = new java . io . StringWriter ( ) ; new cz . habarta . typescript . generator...
org . junit . Assert . assertEquals ( expected , actual )
testDepthToSpace ( ) { org . nd4j . linalg . factory . Nd4j . getRandom ( ) . setSeed ( 1337 ) ; int miniBatch = 128 ; int blockSize = 4 ; java . lang . String dataFormat = "NHWC" ; int isNHWC = ( dataFormat . equals ( "NHWC" ) ) ? 1 : 0 ; int [ ] inputShape = new int [ ] { miniBatch , 2 , 2 , blockSize * blockSize } ;...
org . junit . Assert . assertNull ( err , err )
testGetSetPerfMessage ( ) { java . lang . String expectedPerfMessage = "testGetSetPerfMessage" ; com . microsoft . windowsazure . services . media . models . TaskInfo TaskInfo = new com . microsoft . windowsazure . services . media . models . TaskInfo ( null , new com . microsoft . windowsazure . services . media . imp...
org . junit . Assert . assertEquals ( expectedPerfMessage , actualPerfMessage )
whenFindPatternUsingScanner_thenFound ( ) { final java . lang . String expectedValue = "world" ; final java . io . FileInputStream inputStream = new java . io . FileInputStream ( "src/test/resources/test_read.in" ) ; final java . util . Scanner scanner = new java . util . Scanner ( inputStream ) ; final java . lang . S...
org . junit . Assert . assertEquals ( expectedValue , result )
verboseOptionCanBeSetWithLongOpt ( ) { java . lang . String [ ] args = makeArgs ( "-verbose" ) ; options = createOptions ( args ) ; "<AssertPlaceHolder>" ; } verbose ( ) { return verbose ; }
org . junit . Assert . assertEquals ( true , options . verbose ( ) )
parseTagWithDBHardwareAddress ( ) { cern . c2mon . shared . common . datatag . address . HardwareAddress address = new cern . c2mon . shared . common . datatag . address . impl . DBHardwareAddressImpl ( "itemName" ) ; cern . c2mon . shared . common . datatag . address . HardwareAddress readAddress = serializeDeserializ...
org . junit . Assert . assertEquals ( address , readAddress )
to_A$Long ( ) { com . m3 . scalaflavor4j . Seq < java . lang . Long > actual = com . m3 . scalaflavor4j . SLong . apply ( 1L ) . to ( 3L ) ; "<AssertPlaceHolder>" ; } size ( ) { return 0 ; }
org . junit . Assert . assertThat ( actual . size ( ) , org . hamcrest . CoreMatchers . is ( org . hamcrest . CoreMatchers . equalTo ( 3 ) ) )
testSelectBestPoolsShouldSelectPoolWithMismatchedRole ( ) { org . candlepin . model . Product product69 = new org . candlepin . model . Product ( ) ; product69 . setId ( "compliant-69" ) ; consumer . setRole ( "my_role" ) ; org . candlepin . model . ConsumerInstalledProduct consumerInstalledProduct = new org . candlepi...
org . junit . Assert . assertEquals ( 1 , bestPools . size ( ) )
testConstructorZeroLength ( ) { boolean success = false ; try { @ com . mozilla . bagheera . validation . SuppressWarnings ( "unused" ) com . mozilla . bagheera . validation . Validator v = new com . mozilla . bagheera . validation . Validator ( new java . lang . String [ 0 ] ) ; } catch ( java . lang . IllegalArgument...
org . junit . Assert . assertTrue ( success )
testSerde ( ) { org . apache . druid . jackson . DefaultObjectMapper mapper = new org . apache . druid . jackson . DefaultObjectMapper ( ) ; org . apache . druid . query . aggregation . post . ConstantPostAggregator aggregator = new org . apache . druid . query . aggregation . post . ConstantPostAggregator ( "aggregato...
org . junit . Assert . assertEquals ( aggregator , aggregator1 )
testAbortProcedureFail ( ) { java . util . Random randomGenerator = new java . util . Random ( ) ; long procId = randomGenerator . nextLong ( ) ; boolean abortResult = org . apache . hadoop . hbase . client . TestAdmin2 . ADMIN . abortProcedure ( procId , true ) ; "<AssertPlaceHolder>" ; } abortProcedure ( long , boole...
org . junit . Assert . assertFalse ( abortResult )
test ( ) { java . util . List < java . lang . String > list = clz . generateParenthesis ( 3 ) ; "<AssertPlaceHolder>" ; } size ( ) { return count ; }
org . junit . Assert . assertEquals ( 5 , list . size ( ) )
testRtrim ( ) { logger . info ( "rtrim" ) ; java . lang . String s = "test<sp>" ; java . lang . String expResult = "test" ; java . lang . String result = com . datumbox . framework . core . common . utilities . PHPMethods . rtrim ( s ) ; "<AssertPlaceHolder>" ; } rtrim ( java . lang . String ) { return com . datumbox ....
org . junit . Assert . assertEquals ( expResult , result )
shouldReturnADefaultJavaExecutableWhenNoneIsSpecified ( ) { this . options . setJavaExecutable ( null ) ; java . io . File actual = new java . io . File ( this . testee . getJavaExecutable ( ) . javaExecutable ( ) ) ; if ( java . lang . System . getProperty ( "os.name" ) . contains ( "Windows" ) ) { actual = new java ....
org . junit . Assert . assertTrue ( actual . exists ( ) )
testWriteToStringFullyConfigured ( ) { au . gov . ga . earthsci . common . color . ColorMap map = au . gov . ga . earthsci . common . color . ColorMapBuilder . createColorMap ( ) . named ( "test" ) . describedAs ( "Test<sp>map" ) . using ( InterpolationMode . INTERPOLATE_HUE ) . withPercentageValues ( ) . withEntry ( 0...
org . junit . Assert . assertEquals ( expected , result )
getPublicDNS_Empty ( ) { java . lang . String accessInfo = getUnableAccessInfo ( ) ; java . lang . String result = handler . getPublicDNS ( accessInfo ) ; "<AssertPlaceHolder>" ; } getPublicDNS ( java . lang . String ) { com . amazonaws . services . ec2 . model . DescribeInstancesResult result = getEC2 ( ) . describeIn...
org . junit . Assert . assertEquals ( "" , result )
withEqualityFilterForDocumentSnapshotCursor ( ) { doAnswer ( com . google . cloud . firestore . LocalFirestoreHelper . queryResponse ( ) ) . when ( firestoreMock ) . streamRequest ( runQuery . capture ( ) , streamObserverCapture . capture ( ) , org . mockito . Matchers . < com . google . api . gax . rpc . ServerStreami...
org . junit . Assert . assertEquals ( queryRequest , runQuery . getValue ( ) )
lambdaGetReturnType ( ) { final com . b2international . snowowl . core . events . Request < com . b2international . snowowl . core . ServiceProvider , java . lang . Integer > req = ( context ) -> 0 ; "<AssertPlaceHolder>" ; } getReturnType ( ) { return next . getReturnType ( ) ; }
org . junit . Assert . assertEquals ( com . b2international . snowowl . core . events . util . Integer . class , req . getReturnType ( ) )
testCleanOverlappingWithGerman ( ) { org . languagetool . JLanguageTool tool = new org . languagetool . JLanguageTool ( new org . languagetool . language . GermanyGerman ( ) ) ; java . util . List < org . languagetool . rules . RuleMatch > matches = tool . check ( "TRGS<sp>-<sp>Technische<sp>Regeln<sp>fr<sp>Gefahrstoff...
org . junit . Assert . assertEquals ( 3 , matches . size ( ) )
shouldDownscaleImagesTest ( ) { int iterations = 5 ; int j = iterations ; while ( ( -- j ) >= 0 ) { setup ( ) ; com . ociweb . pronghorn . stage . scheduling . NonThreadScheduler scheduler = new com . ociweb . pronghorn . stage . scheduling . NonThreadScheduler ( gm ) ; scheduler . startup ( ) ; if ( com . ociweb . pro...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( fileBytes , rotationPipeReaderState . currentFrame ) )
shouldCreateWithSource ( ) { javax . faces . application . Application application = mock ( javax . faces . application . Application . class ) ; org . springframework . springfaces . event . PostConstructApplicationSpringFacesEvent e = new org . springframework . springfaces . event . PostConstructApplicationSpringFac...
org . junit . Assert . assertThat ( e . getSource ( ) , org . hamcrest . Matchers . is ( application ) )
testFindRedirectUrl ( ) { final java . lang . String rm1 = "rm1" ; final java . lang . String rm2 = "rm2" ; final java . lang . String rm1Url = startHttpServer ( ) ; final java . lang . String rm2Url = "host2:8088" ; org . apache . hadoop . yarn . server . webproxy . amfilter . TestAmFilter . TestAmIpFilter filter = ne...
org . junit . Assert . assertEquals ( spy . findRedirectUrl ( ) , rm1Url )
NotCancelledEvent_ListenerIgnoringCancelled_AcceptsNotCancelled ( ) { class ListenerPojo { int count = 0 ; public void call ( net . mostlyoriginal . api . event . common . EventListenerTest . CancellableEvent event ) { ( count ) ++ ; } } ListenerPojo pojo = new ListenerPojo ( ) ; new net . mostlyoriginal . api . event ...
org . junit . Assert . assertEquals ( 1 , pojo . count )
set_monochrome_on_color_aware_formatters ( ) { cucumber . runtime . RuntimeOptions options = new cucumber . runtime . RuntimeOptions ( new cucumber . runtime . Env ( ) , asList ( "--monochrome" , "--plugin" , cucumber . runtime . RuntimeOptionsTest . AwareFormatter . class . getName ( ) ) ) ; cucumber . runtime . forma...
org . junit . Assert . assertThat ( formatter . isMonochrome ( ) , org . hamcrest . CoreMatchers . is ( true ) )
testFindById ( ) { java . lang . Long id = 1L ; java . lang . String abbrName = "abbr<sp>name" ; java . lang . String name = "name" ; org . lnu . is . domain . department . Department expected = new org . lnu . is . domain . department . Department ( ) ; expected . setId ( id ) ; expected . setAbbrName ( abbrName ) ; e...
org . junit . Assert . assertEquals ( expected , actual )
testGetSortByString ( ) { System . out . println ( "getSortByString" ) ; java . lang . String expResult = ( ( ( ( edu . harvard . iq . dataverse . authorization . users . AuthenticatedUserTest . testUser . getLastName ( ) ) + "<sp>" ) + ( edu . harvard . iq . dataverse . authorization . users . AuthenticatedUserTest . ...
org . junit . Assert . assertEquals ( expResult , result )
getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wim . core . fat . MaxSearchResultTest . c , "getRealm" , "Checking<sp>expected<sp>realm" ) ; "<AssertPlaceHolder>" ; } getRealm ( ) { com . ibm . websphere . simplicity . log . Log . info ( com . ibm . ws . security . wi...
org . junit . Assert . assertEquals ( "maxsearchresult" , com . ibm . ws . security . wim . core . fat . MaxSearchResultTest . servlet . getRealm ( ) )
testVectorSerialize ( ) { int size = 100 ; org . apache . giraph . aggregators . matrix . sparse . LongSparseVector from = new org . apache . giraph . aggregators . matrix . sparse . LongSparseVector ( size ) ; from . set ( 0 , 10 ) ; from . set ( 10 , 5 ) ; from . set ( 12 , 1 ) ; byte [ ] data = org . apache . giraph...
org . junit . Assert . assertEquals ( from . get ( i ) , to . get ( i ) )
testUpdate ( ) { com . vmware . admiral . compute . container . HostPortProfileService . HostPortProfileState profile = createHostPortProfile ( ) ; profile = doPost ( profile , HostPortProfileService . FACTORY_LINK ) ; profile . startPort = new java . lang . Long ( "5000" ) ; com . vmware . admiral . compute . containe...
org . junit . Assert . assertEquals ( profile . startPort , result . startPort )
testPlainGame ( ) { java . io . InputStream is = com . goai . sgf . parse . FullParse . class . getResourceAsStream ( "masao_koichi.sgf" ) ; com . goai . sgf . ebnf . GameTreeCollection collection = com . goai . sgf . parse . SGFParser . parse ( is ) ; "<AssertPlaceHolder>" ; } getGametrees ( ) { return gametrees ; }
org . junit . Assert . assertEquals ( 1 , collection . getGametrees ( ) . size ( ) )
mergeListInputNull ( ) { final com . crossoverjie . algorithm . LinkedListMergeSort objectUnderTest = new com . crossoverjie . algorithm . LinkedListMergeSort ( ) ; final com . crossoverjie . algorithm . LinkedListMergeSort . Node left = null ; final com . crossoverjie . algorithm . LinkedListMergeSort . Node right = n...
org . junit . Assert . assertNull ( retval )
testCloseStreamOnException ( ) { java . io . OutputStream outputStream = org . mockito . Mockito . mock ( java . io . OutputStream . class ) ; org . apache . hadoop . mapred . IFileOutputStream ifos = new org . apache . hadoop . mapred . IFileOutputStream ( outputStream ) ; org . mockito . Mockito . doThrow ( new java ...
org . junit . Assert . assertEquals ( "Dummy<sp>Exception" , ioe . getMessage ( ) )
testResolveUriWithUsbPath ( ) { final org . eclipse . kura . linux . position . GpsDeviceTrackerTest . GpsDeviceTrackerTestFixture fixture = new org . eclipse . kura . linux . position . GpsDeviceTrackerTest . GpsDeviceTrackerTestFixture ( ) ; fixture . addDeviceMapping ( "1-2.1" , "/dev/ttyFOO" ) ; final org . eclipse...
org . junit . Assert . assertEquals ( org . eclipse . kura . linux . position . GpsDeviceTrackerTest . getUri ( "/dev/ttyFOO" ) . toString ( ) , trackedUri . toString ( ) )
testGetAudit ( ) { try ( com . salesforce . dva . argus . sdk . ArgusService argusService = new com . salesforce . dva . argus . sdk . ArgusService ( getMockedClient ( "/AuditServiceTest.json" ) ) ) { com . salesforce . dva . argus . sdk . AuditService auditService = argusService . getAuditService ( ) ; com . salesforc...
org . junit . Assert . assertEquals ( expected , result )
shouldParseMutationEnigne ( ) { final org . pitest . mutationtest . config . ReportOptions actual = parseAddingRequiredArgs ( "--mutationEngine" , "foo" ) ; "<AssertPlaceHolder>" ; } getMutationEngine ( ) { return this . mutationEngine ; }
org . junit . Assert . assertEquals ( "foo" , actual . getMutationEngine ( ) )
boundsCtorSetNullScreenToWorld ( ) { org . geotools . map . MapViewport vp = new org . geotools . map . MapViewport ( org . geotools . map . MapViewportTest . WORLD_1_1 ) ; "<AssertPlaceHolder>" ; } getScreenToWorld ( ) { lock . readLock ( ) . lock ( ) ; try { return ( screenToWorld ) == null ? null : new java . awt . ...
org . junit . Assert . assertNull ( vp . getScreenToWorld ( ) )
testFetchByPrimaryKeyExisting ( ) { com . liferay . layout . page . template . model . LayoutPageTemplateEntry newLayoutPageTemplateEntry = addLayoutPageTemplateEntry ( ) ; com . liferay . layout . page . template . model . LayoutPageTemplateEntry existingLayoutPageTemplateEntry = _persistence . fetchByPrimaryKey ( new...
org . junit . Assert . assertEquals ( existingLayoutPageTemplateEntry , newLayoutPageTemplateEntry )
testUploadIndexAndSearchPdfFileUsingUserDefinedDatePattern ( ) { final org . apache . cxf . jaxrs . client . WebClient wc = createWebClient ( "/catalog" ) . type ( MediaType . MULTIPART_FORM_DATA ) ; final org . apache . cxf . jaxrs . ext . multipart . ContentDisposition disposition = new org . apache . cxf . jaxrs . e...
org . junit . Assert . assertEquals ( hits . size ( ) , 1 )
testSetMode ( ) { java . lang . String myMode = "100777" ; entry . setMode ( myMode ) ; "<AssertPlaceHolder>" ; } getMode ( ) { return mode ; }
org . junit . Assert . assertEquals ( myMode , entry . getMode ( ) )
isFailureShouldReturnFalseWhenNotFailure ( ) { doReturn ( "Other" ) . when ( status ) . getStatus ( ) ; "<AssertPlaceHolder>" ; } isFailure ( ) { return com . openshift . internal . restclient . model . FAILURE . equalsIgnoreCase ( getStatus ( ) ) ; }
org . junit . Assert . assertFalse ( status . isFailure ( ) )
addBlobs ( ) { org . apache . jackrabbit . oak . plugins . document . DocumentMK mk = new org . apache . jackrabbit . oak . plugins . document . DocumentMK . Builder ( ) . setMongoDB ( openMongoConnection ( ) ) . open ( ) ; long blobSize = ( org . apache . jackrabbit . oak . plugins . document . BlobTest . TOTAL_SIZE )...
org . junit . Assert . assertEquals ( blobSize , mk . getLength ( id ) )
shouldRejectEmptyHostsListOnPut ( ) { res = hv . validate ( hs , org . openstack . atlas . api . mgmt . validation . validators . PUT ) ; "<AssertPlaceHolder>" ; } resultMessage ( org . openstack . atlas . api . validation . results . ValidatorResult , java . lang . Enum ) { java . lang . StringBuilder sb = new java . ...
org . junit . Assert . assertFalse ( resultMessage ( res , org . openstack . atlas . api . mgmt . validation . validators . PUT ) , res . passedValidation ( ) )
testGetDefaultExcludePattern ( ) { hudson . plugins . jobConfigHistory . JobConfigHistory sut = createSut ( ) ; java . lang . String expResult = JobConfigHistoryConsts . DEFAULT_EXCLUDE ; java . lang . String result = sut . getDefaultExcludePattern ( ) ; "<AssertPlaceHolder>" ; } getDefaultExcludePattern ( ) { return J...
org . junit . Assert . assertEquals ( expResult , result )
constructor ( ) { runner = new com . opera . core . systems . OperaLauncherRunnerTest . TestOperaLauncherRunner ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( runner )
testGetEmptyClusterNodeLabels ( ) { when ( client . getClusterNodeLabels ( ) ) . thenReturn ( new java . util . ArrayList < org . apache . hadoop . yarn . api . records . NodeLabel > ( ) ) ; org . apache . hadoop . yarn . client . cli . ClusterCLI cli = createAndGetClusterCLI ( ) ; int rc = cli . run ( new java . lang ...
org . junit . Assert . assertEquals ( 0 , rc )
writeSourcePropagatesEof ( ) { okio . Source source = new okio . Buffer ( ) . writeUtf8 ( "abcd" ) ; try { sink . write ( source , 8 ) ; org . junit . Assert . fail ( ) ; } catch ( java . io . EOFException expected ) { } sink . flush ( ) ; "<AssertPlaceHolder>" ; } readUtf8 ( ) { buffer . write ( decode ) ; return buff...
org . junit . Assert . assertEquals ( "abcd" , data . readUtf8 ( ) )
CallStaticMethodIndirect_MethodStaticMethod ( ) { java . lang . String fromClass = "Domain.Indirect.ViolatingFrom.CallStaticMethodIndirect_MethodStaticMethod" ; java . lang . String toClass = "Domain.Indirect.IndirectTo.ServiceOne" ; java . util . ArrayList < java . lang . String > typesToFind = new java . util . Array...
org . junit . Assert . assertTrue ( areDependencyTypesDetected ( fromClass , toClass , typesToFind , false ) )
testCreateTable ( ) { dao . createTable ( ) ; "<AssertPlaceHolder>" ; } tableExists ( ) { final java . lang . String sql = java . lang . String . format ( ( "SELECT<sp>tbl.cnt<sp>FROM<sp>" + "(SELECT<sp>count(*)<sp>cnt<sp>FROM<sp>INFORMATION_SCHEMA.TABLES<sp>WHERE<sp>TABLE_NAME<sp>=<sp>UPPER('%s'))<sp>as<sp>tbl" ) , or...
org . junit . Assert . assertTrue ( dao . tableExists ( ) )
testResolvePidAspect ( ) { org . eclipse . tracecompass . tmf . core . trace . ITmfContext context = fTrace . seekEvent ( 0L ) ; java . util . List < java . lang . Integer > expected = new java . util . ArrayList ( ) ; expected . add ( null ) ; expected . add ( null ) ; expected . add ( null ) ; expected . add ( null )...
org . junit . Assert . assertEquals ( expected , pids )
testMemoryReleasedOnCrash ( ) { final java . lang . ref . WeakReference < com . persistit . Persistit > ref = new java . lang . ref . WeakReference < com . persistit . Persistit > ( _persistit ) ; com . persistit . CleanupManager cm = cm ( ) ; cm . offer ( new com . persistit . CleanupManagerTest . CleanupMockAction ( ...
org . junit . Assert . assertTrue ( doesRefBecomeNull ( ref ) )
testWhenNoneMatch ( ) { mapOfMatchers = tech . aroma . application . service . reactions . matchers . MatchBehavior . createMatchersThatNeverMatchFor ( message ) ; setupMatchers ( ) ; "<AssertPlaceHolder>" ; } matches ( tech . aroma . thrift . Message , java . util . List ) { if ( sir . wellington . alchemy . collectio...
org . junit . Assert . assertThat ( instance . matches ( message , matchers ) , is ( false ) )
hash ( ) { when ( getOrgNamesFunction . apply ( organization ) ) . thenReturn ( com . google . common . collect . Lists . newArrayList ( "ICM" , "PWR" ) ) ; when ( stringHasher . hash ( "ICM" ) ) . thenReturn ( "HASH" ) ; java . lang . String hash = hasher . hash ( organization ) ; "<AssertPlaceHolder>" ; } hash ( eu ....
org . junit . Assert . assertEquals ( "HASH" , hash )
violationCountWithoutCauses ( ) { org . everit . json . schema . ValidationException subject = subjectWithCauses ( ) ; "<AssertPlaceHolder>" ; } getViolationCount ( ) { return org . everit . json . schema . ValidationException . getViolationCount ( causingExceptions ) ; }
org . junit . Assert . assertEquals ( 1 , subject . getViolationCount ( ) )
shouldSerialiseAndDeserialiseOperationWithMissingEdgeVertices ( ) { final uk . gov . gchq . gaffer . operation . impl . output . ToVertices op = new uk . gov . gchq . gaffer . operation . impl . output . ToVertices . Builder ( ) . input ( new uk . gov . gchq . gaffer . operation . data . EntitySeed ( "2" ) ) . build ( ...
org . junit . Assert . assertNotNull ( deserialisedOp )