input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
shouldNotPlaceItemWhenThereIsNoCapacityLeft ( ) { net . simon987 . server . game . objects . ItemsContainer itemsContainer = new net . simon987 . server . game . objects . ItemsContainer ( 1 ) ; itemsContainer . placeItem ( new net . simon987 . server . game . item . ItemCopper ( ) ) ; boolean result = itemsContainer ....
org . junit . Assert . assertEquals ( false , result )
testConvert ( ) { java . lang . Long id = 1L ; java . lang . String value = "sfas" ; java . lang . Long personId = 2L ; org . lnu . is . domain . person . Person person = new org . lnu . is . domain . person . Person ( ) ; person . setId ( personId ) ; java . lang . Long contactTypeId = 3L ; org . lnu . is . domain . c...
org . junit . Assert . assertEquals ( expected , actual )
testCreateGreetingsGradleProject ( ) { try { final java . io . File targetDir = this . temp . newFolder ( ) ; java . lang . String _absolutePath = targetDir . getAbsolutePath ( ) ; java . lang . String _plus = "org.xtext.example.mydsl.parent/gradlew" 1 + _absolutePath ; final java . util . List < java . lang . String >...
org . junit . Assert . assertTrue ( new java . io . File ( targetDir , file ) . exists ( ) )
testWhere ( ) { org . nd4j . linalg . api . ndarray . INDArray data = org . nd4j . linalg . factory . Nd4j . create ( 4 ) ; org . nd4j . linalg . api . ndarray . INDArray mask = org . nd4j . linalg . factory . Nd4j . create ( DataType . BOOL , 4 ) ; org . nd4j . linalg . api . ndarray . INDArray put = org . nd4j . lina...
org . junit . Assert . assertEquals ( assertion , resultData )
supportedCountrySubdivisionReturnsCorrespondingBbanDefinition ( ) { for ( fr . marcwrobel . jbanking . iban . BbanStructure structure : fr . marcwrobel . jbanking . iban . BbanStructure . values ( ) ) { for ( fr . marcwrobel . jbanking . IsoCountry country : structure . getSubdivisions ( ) ) { "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertEquals ( structure , fr . marcwrobel . jbanking . iban . BbanStructure . forCountry ( country ) )
validDataDoesntThrowException ( ) { final br . com . caelum . vraptor . validator . ValidatorAcceptanceTest . Student guilherme = new br . com . caelum . vraptor . validator . ValidatorAcceptanceTest . Student ( ) ; guilherme . id = 15L ; validator . checking ( new br . com . caelum . vraptor . validator . Validations ...
org . junit . Assert . assertFalse ( validator . hasErrors ( ) )
testSrcMainJava ( ) { spoon . Launcher spoon = new spoon . Launcher ( ) ; spoon . getEnvironment ( ) . setCommentEnabled ( true ) ; spoon . addInputResource ( "src/main/java/" ) ; spoon . buildModel ( ) ; spoon . test . architecture . List < java . lang . String > notDocumented = new spoon . test . architecture . Array...
org . junit . Assert . assertEquals ( 0 , treeSetWithoutComparators . size ( ) )
testGetPoint2D ( ) { java . awt . geom . AffineTransform rotateInstance = java . awt . geom . AffineTransform . getRotateInstance ( 2.1 ) ; com . twelvemonkeys . image . BufferedImageOp original = new java . awt . image . AffineTransformOp ( rotateInstance , null ) ; com . twelvemonkeys . image . BufferedImageOp fallba...
org . junit . Assert . assertEquals ( original . getPoint2D ( point , null ) , fallback . getPoint2D ( point , null ) )
testPurgeLogs ( ) { java . lang . String name = "distrlog-purge-logs" ; java . net . URI uri = createDLMURI ( ( "/" + name ) ) ; populateData ( new java . util . HashMap < java . lang . Long , org . apache . distributedlog . DLSN > ( ) , org . apache . distributedlog . TestTruncate . conf , name , 10 , 10 , false ) ; o...
org . junit . Assert . assertEquals ( 6 , distributedLogManager . getLogSegments ( ) . size ( ) )
testSimpleMergeJoinPredicateOnly ( ) { org . apache . rya . api . domain . RyaIRI pred1 = new org . apache . rya . api . domain . RyaIRI ( org . apache . rya . MergeJoinTest . litdupsNS , "pred1" ) ; org . apache . rya . api . domain . RyaIRI pred2 = new org . apache . rya . api . domain . RyaIRI ( org . apache . rya ....
org . junit . Assert . assertEquals ( 4 , count )
shouldNotBeRequiredIfConstrainedButNotWithNotNull ( ) { org . springframework . springfaces . template . ui . ComponentInfo info = getComponentInfoForBeanValue ( "canBeNull" ) ; "<AssertPlaceHolder>" ; } isRequired ( ) { for ( javax . faces . component . UIComponent component : this . components ) { if ( isRequired ( c...
org . junit . Assert . assertThat ( info . isRequired ( ) , org . hamcrest . Matchers . is ( false ) )
someTest4 ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testLaxHostnameVerification ( ) { final ch . cyberduck . core . s3 . Host host = new ch . cyberduck . core . s3 . Host ( new ch . cyberduck . core . s3 . S3Protocol ( ) , new ch . cyberduck . core . s3 . S3Protocol ( ) . getDefaultHostname ( ) , new ch . cyberduck . core . s3 . Credentials ( java . lang . System . getP...
org . junit . Assert . assertEquals ( "ch.s3.amazonaws.com" , hostname )
testHashOids ( ) { final java . lang . String [ ] [ ] checks = new java . lang . String [ ] [ ] { new java . lang . String [ ] { "sha1" , "MCEwCQYFKw4DAhoFAAQU" } , new java . lang . String [ ] { "sha256" 6 , "MC0wDQYJYIZIAWUDBAIEBQAEHA==" } , new java . lang . String [ ] { "sha256" , "MDEwDQYJYIZIAWUDBAIBBQAEIA==" } ,...
org . junit . Assert . assertEquals ( "sha256" 5 , check [ 1 ] , magic )
testAppendClassTypeAttributes ( ) { this . selectorDoc . appendClassTypeAttributes ( stringBuffer , org . slc . sli . modeling . tools . selector . SelectorDocTest . CLASS_TYPE ) ; java . lang . String part1 = java . lang . String . format ( SelectorDoc . FEATURE , SelectorDoc . ATTRIBUTE , org . slc . sli . modeling ....
org . junit . Assert . assertEquals ( expectedToString , stringBuffer . toString ( ) )
testMixinQueryContent ( ) { org . nuxeo . ecm . core . storage . sql . Session session = repository . getConnection ( ) ; org . nuxeo . ecm . core . storage . sql . Node root = session . getRootNode ( ) ; org . nuxeo . ecm . core . storage . sql . Node node = session . addChildNode ( root , "foo" , null , "TestDoc" , f...
org . junit . Assert . assertEquals ( 1 , res . size ( ) )
strictParameterIsOverriddenIfSpecified ( ) { params . setStrict ( false ) ; params . overrideStrict ( new com . github . timm . cucumber . options . RuntimeOptions ( "--strict" ) . isStrict ( ) ) ; "<AssertPlaceHolder>" ; } isStrict ( ) { return strict ; }
org . junit . Assert . assertThat ( params . isStrict ( ) , org . hamcrest . Matchers . equalTo ( true ) )
testInitInvalidKeystoreType ( ) { com . streamsets . datacollector . credential . javakeystore . JavaKeyStoreCredentialStore store = new com . streamsets . datacollector . credential . javakeystore . JavaKeyStoreCredentialStore ( ) ; store = org . mockito . Mockito . spy ( store ) ; com . streamsets . pipeline . api . ...
org . junit . Assert . assertEquals ( 1 , store . init ( context ) . size ( ) )
mergeBatch_with_subquery ( ) { com . querydsl . sql . dml . SQLMergeClause merge = merge ( com . querydsl . sql . Constants . survey ) . keys ( survey . id ) . columns ( survey . id , survey . name ) . select ( query ( ) . from ( com . querydsl . sql . Constants . survey2 ) . select ( survey2 . id . add ( 20 ) , survey...
org . junit . Assert . assertEquals ( 1 , merge . execute ( ) )
shouldHaveNotReachedCapacityWhenAssignedTasksLessThanCapacity ( ) { "<AssertPlaceHolder>" ; } reachedCapacity ( ) { return ( assignedTasks . size ( ) ) >= ( capacity ) ; }
org . junit . Assert . assertFalse ( client . reachedCapacity ( ) )
shouldDeleteAFormResource ( ) { long before = getAllCount ( ) ; org . springframework . mock . web . MockHttpServletResponse response = handle ( newDeleteRequest ( ( ( ( getURI ( ) ) + "/" ) + ( getUuid ( ) ) ) ) ) ; "<AssertPlaceHolder>" ; } getAllCount ( ) { return service . getOrderFrequencies ( false ) . size ( ) ;...
org . junit . Assert . assertEquals ( ( before - 1 ) , getAllCount ( ) )
testSetRadius ( ) { mRoundedCornersDrawable . setRadius ( 9 ) ; verify ( mCallback ) . invalidateDrawable ( mRoundedCornersDrawable ) ; "<AssertPlaceHolder>" ; } getRadii ( ) { return mCornerRadii ; }
org . junit . Assert . assertArrayEquals ( new float [ ] { 9 , 9 , 9 , 9 , 9 , 9 , 9 , 9 } , mRoundedCornersDrawable . getRadii ( ) , 0 )
testMetricServiceWithSetMetricRegistryOption ( ) { io . vertx . core . Vertx vertx = io . vertx . core . Vertx . vertx ( getOptionsWithSetMetricRegistry ( ) ) ; io . vertx . ext . dropwizard . MetricsService metricsService = io . vertx . ext . dropwizard . MetricsService . create ( vertx ) ; "<AssertPlaceHolder>" ; } m...
org . junit . Assert . assertTrue ( ( ( metricsService . metricsNames ( ) . size ( ) ) > 0 ) )
getDefaults ( ) { java . util . Set < org . mitre . oauth2 . model . SystemScope > defaults = com . google . common . collect . Sets . newHashSet ( defaultDynScope1 , defaultDynScope2 , defaultScope1 , defaultScope2 ) ; "<AssertPlaceHolder>" ; } getDefaults ( ) { java . util . Set < org . mitre . oauth2 . model . Syste...
org . junit . Assert . assertThat ( service . getDefaults ( ) , org . hamcrest . CoreMatchers . equalTo ( defaults ) )
test_isIntegerNumber ( ) { java . lang . String javaType = "java.lang.Long" ; boolean result = databaseDataTypesUtils . isIntegerNumber ( javaType ) ; "<AssertPlaceHolder>" ; } isIntegerNumber ( java . lang . String ) { if ( ( ( ( javaType . endsWith ( "Long" ) ) || ( javaType . endsWith ( "Integer" ) ) ) || ( javaType...
org . junit . Assert . assertTrue ( result )
shouldSupportPrefixedPropertiesThatAreNotPartOfRestoreConsumerConfig ( ) { final org . apache . kafka . streams . StreamsConfig streamsConfig = new org . apache . kafka . streams . StreamsConfig ( props ) ; props . put ( org . apache . kafka . streams . StreamsConfig . consumerPrefix ( "interceptor.statsd.host" ) , "ho...
org . junit . Assert . assertEquals ( "host" , consumerConfigs . get ( "interceptor.statsd.host" ) )
isBarrier ( ) { outboundQueueEntry . commit ( barrierInput , futureCallback ) ; "<AssertPlaceHolder>" ; } isBarrier ( ) { return barrier ; }
org . junit . Assert . assertTrue ( outboundQueueEntry . isBarrier ( ) )
testWrongCountryContinent ( ) { net . canadensys . processor . AbstractDataProcessor dataProcessor = new net . canadensys . processor . geography . CountryContinentProcessor ( "countryISOLetterCode" , "continent" ) ; net . canadensys . processor . geography . CountryContinentProcessorTest . MockCountryCodeHolder mockRa...
org . junit . Assert . assertNull ( mockModel . getContinent ( ) )
zeroReadLen ( ) { final java . util . Map < java . lang . String , java . lang . String > encryptionContext = new java . util . HashMap ( 1 ) ; encryptionContext . put ( "ENC" , "zeroReadLen" ) ; final java . io . InputStream inStream = new java . io . ByteArrayInputStream ( com . amazonaws . encryptionsdk . TestUtils ...
org . junit . Assert . assertEquals ( readLen , 0 )
refuseASuggestionPendingValidationOfASuggestionBox ( ) { org . silverpeas . components . suggestionbox . model . Suggestion suggestion = new org . silverpeas . components . suggestionbox . model . Suggestion ( "My<sp>suggestion" ) ; suggestion . setSuggestionBox ( suggestionBox ) ; suggestion . setContent ( "the<sp>con...
org . junit . Assert . assertThat ( actual . getValidation ( ) . getStatus ( ) , is ( ContributionStatus . REFUSED ) )
testCompareToWithLessThanSameResolution ( ) { au . gov . ga . earthsci . core . temporal . BigTime t1 = new au . gov . ga . earthsci . core . temporal . BigTime ( ( - 1000000 ) , BigTime . NANOSECOND_RESOLUTION ) ; au . gov . ga . earthsci . core . temporal . BigTime t2 = new au . gov . ga . earthsci . core . temporal ...
org . junit . Assert . assertTrue ( ( ( t1 . compareTo ( t2 ) ) < 0 ) )
shouldFilterAllArchetypeReferencesBeforeTimePeriod ( ) { org . joda . time . DateTime startDateTime = null ; org . joda . time . DateTime endDateTime = new org . joda . time . DateTime ( "2013-03-01" ) ; java . util . Collection < se . cambio . cds . model . instance . ArchetypeReference > ehrData = generateContactArch...
org . junit . Assert . assertEquals ( 0 , filteredEhrARs . size ( ) )
testFromEbXMLEmpty ( ) { org . openehealth . ipf . commons . ihe . xds . core . requests . query . SqlQuery result = new org . openehealth . ipf . commons . ihe . xds . core . requests . query . SqlQuery ( ) ; transformer . fromEbXML ( result , ebXML ) ; "<AssertPlaceHolder>" ; } fromEbXML ( org . openehealth . ipf . c...
org . junit . Assert . assertEquals ( new org . openehealth . ipf . commons . ihe . xds . core . requests . query . SqlQuery ( ) , result )
testAcceptNoHistoryEntries ( ) { java . io . File file = unpackResourceZip . getResource ( "jobs/Test2/" ) ; "<AssertPlaceHolder>" ; } accepts ( java . io . File ) { return hudson . plugins . jobConfigHistory . HistoryFileFilter . INSTANCE . accept ( file ) ; }
org . junit . Assert . assertFalse ( hudson . plugins . jobConfigHistory . HistoryFileFilter . accepts ( file ) )
createWithSecurityParams ( ) { com . braintreegateway . integrationtest . CustomerRequest request = new com . braintreegateway . integrationtest . CustomerRequest ( ) . creditCard ( ) . cardholderName ( "Fred<sp>Jones" ) . number ( "5105105105105100" ) . cvv ( "123" ) . expirationDate ( "05/12" ) . deviceSessionId ( "a...
org . junit . Assert . assertTrue ( result . isSuccess ( ) )
testBuildSoqlQueryWithComplexChildTableNameParentToChild ( ) { java . lang . String expected = "\"SELECT<sp>Name,<sp>(SELECT<sp>custom.lastName,<sp>talend_account__c.Age<sp>FROM<sp>talend_contact__c.Persons),<sp>contact_title__c<sp>FROM<sp>talend_contact__c\"" ; org . apache . avro . Schema schema = org . apache . avro...
org . junit . Assert . assertEquals ( expected , queryFromBuilder )
testDefineCommand11 ( ) { try { com . gabstudios . cmdline . CmdLine . defineCommand ( "file,<sp>?fileName1,<sp>!fileNames2" ) ; org . junit . Assert . fail ( ) ; } catch ( com . gabstudios . cmdline . UnsupportedException e ) { "<AssertPlaceHolder>" ; } } defineCommand ( java . lang . String [ ] ) { com . gabstudios ....
org . junit . Assert . assertTrue ( true )
testEncode ( ) { java . lang . String expected = ( java . util . Arrays . asList ( encodeImmune ) . contains ( decodedValue ) ) ? decodedValue . toString ( ) : input ; "<AssertPlaceHolder>" ; } encode ( char [ ] , java . lang . String ) { java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; for ( int ...
org . junit . Assert . assertEquals ( expected , codec . encode ( encodeImmune , decodedValue . toString ( ) ) )
testSubclassSavesOverSuperclass ( ) { com . github . droidfu . cachefu . ModelCache modelCache = new com . github . droidfu . cachefu . ModelCache ( 2 , 1 , 1 ) ; java . lang . String id = "123" ; com . github . droidfu . cachefu . SuperclassCachedObjectTest . TestObject testObject = new com . github . droidfu . cachef...
org . junit . Assert . assertEquals ( "yet<sp>another<sp>test" , testObject . getTestString ( ) )
testMoscowTurnCosts ( ) { java . util . List < com . graphhopper . routing . util . TestAlgoCollector . OneRun > list = new java . util . ArrayList ( ) ; list . add ( new com . graphhopper . routing . util . TestAlgoCollector . OneRun ( 55.813357 , 37.5958585 , 55.811042 , 37.594689 , 1043.99 , 12 ) ) ; list . add ( ne...
org . junit . Assert . assertEquals ( testCollector . toString ( ) , 0 , testCollector . errors . size ( ) )
serialize ( ) { com . google . gson . Gson gson = com . github . seratch . jslack . common . json . GsonFactory . createSnakeCase ( ) ; com . github . seratch . jslack . api . model . event . ChannelDeletedEvent event = new com . github . seratch . jslack . api . model . event . ChannelDeletedEvent ( ) ; event . setCha...
org . junit . Assert . assertThat ( generatedJson , org . hamcrest . CoreMatchers . is ( expectedJson ) )
testCreateNamedQuery ( ) { java . lang . String queryName = "Dictionary.findByCategory" ; org . dayatang . persistence . hibernate . NamedQuery query = repository . createNamedQuery ( queryName ) ; "<AssertPlaceHolder>" ; } getQueryName ( ) { return queryName ; }
org . junit . Assert . assertEquals ( queryName , query . getQueryName ( ) )
testDeleteNonexistentToken ( ) { org . eurekastreams . server . domain . OAuthConsumer consumer = new org . eurekastreams . server . domain . OAuthConsumer ( "providerX" , "http://www.example.com/gadgetX.xml" , "keyX" , "secretX" , "HMAC-SHA1" ) ; java . lang . Boolean result = sut . execute ( new org . eurekastreams ....
org . junit . Assert . assertEquals ( true , result )
runTestHashMapAccess1 ( ) { soot . jimple . infoflow . results . InfoflowResults res = analyzeAPKFile ( "ArraysAndLists/HashMapAccess1.apk" ) ; "<AssertPlaceHolder>" ; } size ( ) { return ( this . results ) == null ? 0 : this . results . size ( ) ; }
org . junit . Assert . assertEquals ( 0 , res . size ( ) )
testNotDuplicatedDisplayedMnemonic ( ) { es . gob . afirma . ui . principal . DesensobradoAccessibilityTest . logger . info ( "testNotDuplicatedDisplayedMnemonic" ) ; try { final es . gob . afirma . ui . principal . Desensobrado desensobradoPanel = new es . gob . afirma . ui . principal . Desensobrado ( ) ; final java ...
org . junit . Assert . assertTrue ( ( ( keyCodesSet . size ( ) ) == ( keyCodes . size ( ) ) ) )
testDeleteFavoriteFail ( ) { long anotherPersonFavoriteId = 23L ; favoriteService . deleteFavorite ( anotherPersonFavoriteId ) ; "<AssertPlaceHolder>" ; } deleteFavorite ( long ) { com . ctrip . framework . apollo . portal . entity . po . Favorite favorite = favoriteRepository . findById ( favoriteId ) . orElse ( null ...
org . junit . Assert . assertNull ( favoriteRepository . findById ( anotherPersonFavoriteId ) . orElse ( null ) )
testConstructor_ConstructedTlvDataObject ( ) { de . persosim . simulator . crypto . certificates . CardVerifiableCertificate cvCertDETESTeID00004 = new de . persosim . simulator . crypto . certificates . CardVerifiableCertificate ( cvCertDETESTeID00004Tlv ) ; "<AssertPlaceHolder>" ; } getEncoded ( ) { de . persosim . s...
org . junit . Assert . assertEquals ( cvCertDETESTeID00004Tlv , cvCertDETESTeID00004 . getEncoded ( ) )
testFetchByPrimaryKeyExisting ( ) { com . liferay . announcements . kernel . model . AnnouncementsDelivery newAnnouncementsDelivery = addAnnouncementsDelivery ( ) ; com . liferay . announcements . kernel . model . AnnouncementsDelivery existingAnnouncementsDelivery = _persistence . fetchByPrimaryKey ( newAnnouncementsD...
org . junit . Assert . assertEquals ( existingAnnouncementsDelivery , newAnnouncementsDelivery )
getPropertyAsBoolean_false_test ( ) { java . util . Properties props = java . lang . System . getProperties ( ) ; props . setProperty ( ConfigKey . GENERATOR_PATH . getValue ( ) , "test" ) ; boolean property = ch . puzzle . itc . mobiliar . common . util . ConfigurationService . getPropertyAsBoolean ( ConfigKey . GENER...
org . junit . Assert . assertFalse ( property )
testSetTabIndex_onScrolledComposite ( ) { org . eclipse . swt . widgets . Control control = new org . eclipse . swt . custom . ScrolledComposite ( shell , org . eclipse . swt . SWT . NONE ) ; org . eclipse . swt . internal . widgets . IControlAdapter adapter = org . eclipse . swt . internal . widgets . ControlUtil . ge...
org . junit . Assert . assertEquals ( ( - 1 ) , adapter . getTabIndex ( ) )
whenUpdateDataSet_thenDataSetPropertyReflectsChanges ( ) { org . robobinding . property . ObservableDataSetTest . GetSet getSet = new org . robobinding . property . ObservableDataSetTest . GetSet ( ) ; org . robobinding . property . AbstractDataSetTest . DataSet dataSetProperty = new org . robobinding . property . Abst...
org . junit . Assert . assertSame ( newValue , dataSetProperty . getDataSet ( ) )
testGetDate ( ) { java . util . Date date = slash . common . TestCase . calendar ( 2009 , 11 , 23 , 13 , 53 , 49 , 0 , "UTC" ) . getCalendar ( ) . getTime ( ) ; java . text . DateFormat dateFormat = java . text . DateFormat . getDateInstance ( DateFormat . LONG ) ; java . lang . String expected = dateFormat . format ( ...
org . junit . Assert . assertEquals ( expected , actual )
whenCreateCarUsingDiamondOperator_thenSuccess ( ) { com . baeldung . java . diamond . Car < com . baeldung . java . diamond . Diesel > myCar = new com . baeldung . java . diamond . Car ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( myCar )
testOutputShouldHandleChildrenProperly ( ) { html = "<table><sp>...<sp><tr><sp>...<sp><td>a</td><sp>...<sp></tr><sp>...<sp></table>" ; builder . useTags ( "table" , "tr" , "td" ) ; example = parse ( html ) ; "<AssertPlaceHolder>" ; } toString ( ) { return this . contentType ; }
org . junit . Assert . assertEquals ( "<table><sp>...<sp><tr><sp>...<sp><td>a</td><sp>...<sp></tr><sp>...<sp></table>" , example . toString ( ) )
lambda_with_single_expression ( ) { java . util . function . Function < java . lang . String , java . lang . String > lambda = ( a ) -> a + a ; java . lang . String result = lambda . apply ( "1" ) ; "<AssertPlaceHolder>" ; } apply ( org . gradle . api . Project ) { hu . advancedweb . scott . ScottPluginExtension extens...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . equalTo ( "2" ) )
firstTest ( ) { com . microsoft . azure . management . redis . v2017_10_01 . RedisTest . rgName = com . microsoft . azure . arm . utils . SdkContext . randomResourceName ( "rg" , 20 ) ; com . microsoft . azure . management . resources . ResourceGroup group = com . microsoft . azure . management . redis . v2017_10_01 . ...
org . junit . Assert . assertNotNull ( group )
testGetInstance ( ) { "<AssertPlaceHolder>" ; } getInstance ( ) { eu . smartenit . sdn . floodlight090 . dtm . DTM . logger . debug ( "getInstance()<sp>begin" ) ; synchronized ( eu . smartenit . sdn . floodlight090 . dtm . DTM . class ) { if ( ( eu . smartenit . sdn . floodlight090 . dtm . DTM . singleton ) == null ) {...
org . junit . Assert . assertSame ( dtm , eu . smartenit . sdn . floodlight090 . dtm . DTM . getInstance ( ) )
testRunCommandStringDocument ( ) { final com . allanbank . mongodb . bson . Document reply = com . allanbank . mongodb . bson . builder . BuilderFactory . start ( ) . build ( ) ; final com . allanbank . mongodb . bson . builder . DocumentBuilder options = com . allanbank . mongodb . bson . builder . BuilderFactory . st...
org . junit . Assert . assertSame ( reply , myTestInstance . runCommand ( "command" , options . build ( ) ) )
shouldBuildGraphAndGetGraphIdFromTableName ( ) { final uk . gov . gchq . gaffer . hbasestore . HBaseProperties properties = uk . gov . gchq . gaffer . hbasestore . HBaseProperties . loadStoreProperties ( uk . gov . gchq . gaffer . commonutil . StreamUtil . storeProps ( uk . gov . gchq . gaffer . hbasestore . HBaseStore...
org . junit . Assert . assertEquals ( "tableName" , graph . getGraphId ( ) )
testParse ( ) { for ( java . lang . String sample : ch . cyberduck . core . ftp . parser . NTFTPEntryParserTest . samples ) { "<AssertPlaceHolder>" ; } } parseFTPEntry ( java . lang . String ) { if ( matches ( entry ) ) { java . lang . String typeStr = group ( 1 ) ; java . lang . String usr = group ( 16 ) ; java . lang...
org . junit . Assert . assertNotNull ( sample , parser . parseFTPEntry ( sample ) )
getTimeStamp ( ) { java . util . Date now = new java . util . Date ( ) ; java . lang . String timeStamp = software . amazon . awssdk . auth . signer . internal . Aws4SignerUtils . formatTimestamp ( now . getTime ( ) ) ; java . lang . String old = getOldTimeStamp ( now ) ; "<AssertPlaceHolder>" ; } getOldTimeStamp ( jav...
org . junit . Assert . assertEquals ( old , timeStamp )
testGetWitnessNamesImmutable ( ) { org . gedcom4j . model . IndividualEvent birth = tom . getEventsOfType ( IndividualEventType . BIRTH ) . get ( 0 ) ; java . util . List < org . gedcom4j . model . CustomFact > witnessNames = fha . getUnrelatedWitnesses ( birth ) ; "<AssertPlaceHolder>" ; witnessNames . clear ( ) ; } g...
org . junit . Assert . assertNotNull ( witnessNames )
open_v1 ( ) { applyVersion ( 1 , 0 ) ; com . groupon . lex . metrics . history . TSData opened = com . groupon . lex . metrics . history . TSDataVersionDispatch . open ( file , FACTORY ) ; "<AssertPlaceHolder>" ; verify ( factory_v1 , times ( 1 ) ) . open ( org . mockito . Mockito . any ( ) , org . mockito . Mockito . ...
org . junit . Assert . assertSame ( tsdata , opened )
shouldReturnTrueOnMatchingConditionGivenCurrentDateIsEqualToCutoffDate ( ) { org . flips . model . FeatureContext featureContext = mock ( org . flips . model . FeatureContext . class ) ; org . flips . model . FlipAnnotationAttributes flipAnnotationAttributes = mock ( org . flips . model . FlipAnnotationAttributes . cla...
org . junit . Assert . assertEquals ( true , result )
testLeftOuter_NLJoinExec3 ( ) { org . apache . tajo . storage . fragment . FileFragment [ ] emp3Frags = org . apache . tajo . engine . planner . physical . StorageManager . splitNG ( conf , "emp3" , emp3 . getMeta ( ) , emp3 . getPath ( ) , Integer . MAX_VALUE ) ; org . apache . tajo . storage . fragment . FileFragment...
org . junit . Assert . assertEquals ( 7 , count )
testRectifiedLinearDerivative ( ) { org . nd4j . linalg . api . ndarray . INDArray z = org . nd4j . linalg . factory . Nd4j . zeros ( 100 ) . castTo ( DataType . DOUBLE ) ; double [ ] expOut = new double [ 100 ] ; for ( int i = 0 ; i < 100 ; i ++ ) { double x = 0.1 * ( i - 50 ) ; z . putScalar ( i , x ) ; expOut [ i ] ...
org . junit . Assert . assertTrue ( ( ( expOut [ i ] ) == ( zPrime . getDouble ( i ) ) ) )
testDoCollectAndDiscard ( ) { final java . util . Collection < eu . toolchain . concurrent . Stage < java . lang . Object > > futures = com . google . common . collect . ImmutableList . of ( f1 , f2 ) ; doReturn ( completable ) . when ( underTest ) . completable ( ) ; doNothing ( ) . when ( underTest ) . bindSignals ( ...
org . junit . Assert . assertEquals ( completable , underTest . doCollectAndDiscard ( futures ) )
multipleRulesAreRun ( ) { org . junit . tests . experimental . rules . MethodRulesTest . runCount = 0 ; org . junit . runner . JUnitCore . runClasses ( org . junit . tests . experimental . rules . MethodRulesTest . MultipleRuleTest . class ) ; "<AssertPlaceHolder>" ; } runClasses ( java . lang . Class [ ] ) { return or...
org . junit . Assert . assertEquals ( 2 , org . junit . tests . experimental . rules . MethodRulesTest . runCount )
shouldReturnTrueWhenComparingRemoteVariant ( ) { org . eclipse . egit . core . synchronize . GitResourceVariantComparator grvc = new org . eclipse . egit . core . synchronize . GitResourceVariantComparator ( null ) ; java . io . File file = testRepo . createFile ( iProject , "test-file" ) ; org . eclipse . jgit . revwa...
org . junit . Assert . assertTrue ( grvc . compare ( base , remote ) )
calculate_elapsed_time_nano_in_java ( ) { long startTime = java . lang . System . nanoTime ( ) ; java . lang . Thread . sleep ( 2 ) ; long estimatedTime = ( java . lang . System . nanoTime ( ) ) - startTime ; com . levelup . java . date . MeasureElapsedTime . logger . info ( ( "time:<sp>" + estimatedTime ) ) ; "<Assert...
org . junit . Assert . assertTrue ( ( estimatedTime >= 0 ) )
testInitialStates ( ) { org . apache . jena . sparql . engine . JsonIterator iterator = new org . apache . jena . sparql . engine . JsonIterator ( null , java . util . Collections . emptyList ( ) ) ; "<AssertPlaceHolder>" ; iterator . next ( ) ; } hasNext ( ) { boolean has = delegate . hasNext ( ) ; if ( has == false )...
org . junit . Assert . assertFalse ( iterator . hasNext ( ) )
asJsonAll ( ) { org . apache . jackrabbit . oak . spi . observation . ChangeSet cs1 = new org . apache . jackrabbit . oak . spi . observation . ChangeSet ( 2 , of ( "p-2" ) , of ( "nn-2" ) , of ( "pnt-2" ) , of ( "pn-2" ) , of ( "nt-2" ) ) ; java . lang . String json = cs1 . asString ( ) ; org . apache . jackrabbit . o...
org . junit . Assert . assertEquals ( cs1 , cs2 )
whenOldVehicleIsNullAndSolutionIs0PercentComplete_itShouldReturnNoFixedCosts ( ) { absFixedCosts . setSolutionCompletenessRatio ( 0.0 ) ; absFixedCosts . setWeightOfFixCost ( 1.0 ) ; relFixedCosts . setSolutionCompletenessRatio ( 0.0 ) ; relFixedCosts . setWeightOfFixCost ( 1.0 ) ; com . graphhopper . jsprit . core . p...
org . junit . Assert . assertEquals ( 0.0 , ( ( absFixedCosts . getCosts ( context ) ) + ( relFixedCosts . getCosts ( context ) ) ) , 0.1 )
testSizeInBytes ( ) { org . apache . kafka . common . header . Header [ ] headers = new org . apache . kafka . common . header . Header [ ] { new org . apache . kafka . common . header . internals . RecordHeader ( "foo" , "value" . getBytes ( ) ) , new org . apache . kafka . common . header . internals . RecordHeader (...
org . junit . Assert . assertEquals ( actualSize , org . apache . kafka . common . record . DefaultRecordBatch . sizeInBytes ( java . util . Arrays . asList ( records ) ) )
testFactoryPassesConfigToDatastoreServiceInstance ( ) { if ( isRunningInsideGaeDevServer ( ) ) { return ; } com . google . appengine . api . datastore . DatastoreServiceConfig config = DatastoreServiceConfig . Builder . withDefaults ( ) ; com . google . appengine . api . datastore . DatastoreService service = com . goo...
org . junit . Assert . assertEquals ( config , getConfig ( service ) )
testGetConnectionWithVariables ( ) { when ( dbMeta . getName ( ) ) . thenReturn ( "CP3" ) ; when ( dbMeta . getPassword ( ) ) . thenReturn ( org . pentaho . di . core . database . ConnectionPoolUtilTest . ENCR_PASSWORD ) ; when ( dbMeta . getInitialPoolSizeString ( ) ) . thenReturn ( "INITIAL_POOL_SIZE" ) ; when ( dbMe...
org . junit . Assert . assertTrue ( ( conn != null ) )
testGetFileSpecifiedDir ( ) { classUnderTest . setFileSpecifiedDir ( "aTestString" ) ; "<AssertPlaceHolder>" ; } getFileSpecifiedDir ( ) { return _fileSpecifiedDir ; }
org . junit . Assert . assertEquals ( "aTestString" , classUnderTest . getFileSpecifiedDir ( ) )
isOverlappingInputMatchingBaseDelta ( ) { org . batfish . coordinator . WorkDetails details1 = _builder . setSnapshotId ( new org . batfish . identifiers . SnapshotId ( "t1" ) ) . build ( ) ; org . batfish . coordinator . WorkDetails details2 = _builder . setSnapshotId ( new org . batfish . identifiers . SnapshotId ( "...
org . junit . Assert . assertTrue ( details1 . isOverlappingInput ( details2 ) )
count_words_in_string_guava ( ) { java . util . List < java . lang . String > splitWords = com . google . common . base . Splitter . on ( CharMatcher . WHITESPACE ) . splitToList ( com . levelup . java . string . CountNumberOfWordsInString . phrase ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertEquals ( 8 , splitWords . size ( ) )
shouldCountCustomMethodForNotIn ( ) { java . lang . String documentId = randomNumeric ( 5 ) ; org . springframework . data . elasticsearch . entities . SampleEntity sampleEntity = new org . springframework . data . elasticsearch . entities . SampleEntity ( ) ; sampleEntity . setId ( documentId ) ; sampleEntity . setTyp...
org . junit . Assert . assertThat ( count , is ( equalTo ( 1L ) ) )
testGetMainSchema ( ) { org . apache . avro . Schema mainSchema = org . apache . avro . SchemaBuilder . builder ( ) . record ( "Main" ) . fields ( ) . name ( "id" ) . type ( ) . intType ( ) . noDefault ( ) . endRecord ( ) ; org . apache . avro . Schema outOfBandSchema = org . apache . avro . SchemaBuilder . builder ( )...
org . junit . Assert . assertEquals ( mainSchema , actualMainSchema )
testDelete ( ) { int count = getContadorDao ( ) . count ( ) ; getContadorDao ( ) . delete ( es . ieci . tecdoc . fwktd . sir . api . dao . impl . ContadorDaoImplTest . CODIGO_ENTIDAD_REGISTRAL , es . ieci . tecdoc . fwktd . sir . api . dao . impl . ContadorDaoImplTest . TIPO_CONTADOR ) ; "<AssertPlaceHolder>" ; } getCo...
org . junit . Assert . assertEquals ( ( count - 1 ) , getContadorDao ( ) . count ( ) )
testPollJobFailed ( ) { com . google . api . services . bigquery . model . Job testJob = new com . google . api . services . bigquery . model . Job ( ) ; testJob . setStatus ( new com . google . api . services . bigquery . model . JobStatus ( ) . setState ( "DONE" ) . setErrorResult ( new com . google . api . services ...
org . junit . Assert . assertEquals ( testJob , job )
testGetType ( ) { com . omertron . thetvdbapi . model . BannerTypeTest . LOG . info ( "getType" ) ; com . omertron . thetvdbapi . model . BannerType instance = BannerType . ARTWORK ; java . lang . String expResult = "artwork" ; java . lang . String result = instance . getType ( ) ; "<AssertPlaceHolder>" ; } getType ( )...
org . junit . Assert . assertEquals ( expResult , result )
testConstructorWithMessage ( ) { org . eurekastreams . commons . exceptions . AuthorizationException sut = new org . eurekastreams . commons . exceptions . AuthorizationException ( "msg" ) ; "<AssertPlaceHolder>" ; } getMessage ( ) { return message ; }
org . junit . Assert . assertEquals ( "msg" , sut . getMessage ( ) )
testDisableIdleTimeout ( ) { lombok . val channelConfig = com . xjeffrose . xio . bootstrap . ChannelConfiguration . clientConfig ( 1 , "worker" ) ; lombok . val clientConfig = com . xjeffrose . xio . client . ClientConfig . from ( com . typesafe . config . ConfigFactory . load ( ) . getConfig ( "xio.idleDisabledClient...
org . junit . Assert . assertNull ( result )
testReshape ( ) { org . nd4j . linalg . api . ndarray . INDArray a = org . nd4j . linalg . factory . Nd4j . linspace ( 0 , 1000 , 100000000 ) . reshape ( 1000 , 1000 , 100 ) . permutei ( 0 , 2 , 1 ) ; long startDup = java . lang . System . nanoTime ( ) ; org . nd4j . linalg . api . ndarray . INDArray a2 = a . dup ( ) ....
org . junit . Assert . assertEquals ( a2 , b )
testClientRegionShortcutUnspecified ( ) { "<AssertPlaceHolder>" ; } valueOf ( org . apache . geode . cache . client . ClientRegionShortcut ) { for ( org . springframework . data . gemfire . client . ClientRegionShortcutWrapper wrapper : org . springframework . data . gemfire . client . ClientRegionShortcutWrapper . val...
org . junit . Assert . assertEquals ( ClientRegionShortcutWrapper . UNSPECIFIED , org . springframework . data . gemfire . client . ClientRegionShortcutWrapper . valueOf ( ( ( org . apache . geode . cache . client . ClientRegionShortcut ) ( null ) ) ) )
testReadPrimitiveByte ( ) { final info . michaelwittig . javaq . query . PrimitiveResult < java . lang . Byte > res = ( ( info . michaelwittig . javaq . query . PrimitiveResult < java . lang . Byte > ) ( this . c ( ) . execute ( "0x00" ) ) ) ; "<AssertPlaceHolder>" ; } getPrimitive ( ) { return this . primitive ; }
org . junit . Assert . assertEquals ( java . lang . Byte . valueOf ( ( ( byte ) ( 0 ) ) ) , res . getPrimitive ( ) )
testListParam ( ) { org . nutz . mock . servlet . MockHttpServletRequest req = Mock . servlet . request ( ) ; req . setParameter ( "lists[1].str" , "a" ) ; org . nutz . mvc . adaptor . injector . ObjectNavlPairInjector onpi = org . nutz . mvc . adaptor . injector . ObjectNavlPairInjectorTest . inj ( "lists" , org . nut...
org . junit . Assert . assertTrue ( pojo . get ( 0 ) . str . contains ( "a" ) )
parse_compound ( ) { com . psddev . dari . db . Predicate pred = parser . parse ( "a<sp>=<sp>1<sp>and<sp>b<sp>!=<sp>2" ) ; com . psddev . dari . db . Predicate expect = com . psddev . dari . db . CompoundPredicate . combine ( PredicateParser . AND_OPERATOR , new com . psddev . dari . db . ComparisonPredicate ( Predicat...
org . junit . Assert . assertEquals ( expect , pred )
testFindBillingCodesByCode_CodeRegionDateOrder_NotUsingOrder ( ) { java . lang . String serviceCode = "service001" ; java . lang . String region = "ON" ; java . util . Date date = new java . util . Date ( dfm . parse ( "20091231" ) . getTime ( ) ) ; int order = 11 ; org . oscarehr . common . model . BillingService bill...
org . junit . Assert . assertTrue ( true )
testBuildWithParametersAndDisabledDefaultConstraintsWithOrderBy ( ) { unit . setActive ( false ) ; unit . setSecurity ( false ) ; java . lang . String abbrName = "AN" ; java . lang . String name = "namdsfsd" ; org . lnu . is . domain . degree . type . DegreeType context = new org . lnu . is . domain . degree . type . D...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
testGetParametersWithDefaultEntityAndDisabledStatus ( ) { unit . setActive ( false ) ; org . lnu . is . domain . specialty . SpecialtyType entity = new org . lnu . is . domain . specialty . SpecialtyType ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java ...
org . junit . Assert . assertEquals ( expected , actual )
testGetSetWorkspaceObjectURI ( ) { final fr . gouv . vitam . storage . engine . common . model . request . ObjectDescription createObjectDescription = new fr . gouv . vitam . storage . engine . common . model . request . ObjectDescription ( ) ; createObjectDescription . setWorkspaceObjectURI ( "aa" ) ; "<AssertPlaceHol...
org . junit . Assert . assertEquals ( "aa" , createObjectDescription . getWorkspaceObjectURI ( ) )
sameHash ( ) { it . geosolutions . jaiext . utilities . ImageLayout2 il1 = new it . geosolutions . jaiext . utilities . ImageLayout2 ( 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , null , null ) ; it . geosolutions . jaiext . utilities . ImageLayout2 il2 = new it . geosolutions . jaiext . utilities . ImageLayout2 ( 1 , 2 , 3 , 4 , 5...
org . junit . Assert . assertEquals ( il1 . hashCode ( ) , il2 . hashCode ( ) )
command ( ) { com . asakusafw . utils . jcommander . JCommanderWrapper < java . util . function . Supplier < java . lang . String > > commander = new com . asakusafw . utils . jcommander . JCommanderWrapper ( "PG" , new com . asakusafw . utils . jcommander . JCommanderWrapperTest . Cmd ( "R" ) ) ; commander . addComman...
org . junit . Assert . assertThat ( result , is ( java . util . Optional . of ( "OK" ) ) )
testGlobStatusWithNoMatchesInPath ( ) { org . apache . hadoop . fs . Path [ ] testDirs = new org . apache . hadoop . fs . Path [ ] { getTestRootPath ( org . apache . hadoop . fs . FileContextMainOperationsBaseTest . fc , org . apache . hadoop . fs . FileContextMainOperationsBaseTest . TEST_DIR_AAA ) , getTestRootPath (...
org . junit . Assert . assertEquals ( 0 , paths . length )
testIndentedIFWithValueExpr ( ) { org . stringtemplate . v4 . ST t = new org . stringtemplate . v4 . ST ( ( ( ( ( ( "begin" + ( newline ) ) + "<sp><if(x)>foo<endif>" ) + ( newline ) ) + "end" ) + ( newline ) ) ) ; t . add ( "x" , "x" ) ; java . lang . String expecting = ( ( ( ( "begin" + ( newline ) ) + "<sp>foo" ) + (...
org . junit . Assert . assertEquals ( expecting , result )
equals_shouldReturnTrueIfHibernateProxyOfOneObjectComparedToNonHibernateProxyOfTheSameObject ( ) { org . hibernate . SessionFactory sessionFactory = ( ( org . hibernate . SessionFactory ) ( applicationContext . getBean ( "sessionFactory" ) ) ) ; org . hibernate . Session session = sessionFactory . getCurrentSession ( )...
org . junit . Assert . assertTrue ( patient . equals ( patientproxyobject ) )