input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetNullSelectorFieldName ( ) { "<AssertPlaceHolder>" ; } getSelectorFieldName ( com . stratio . crossdata . common . statements . structures . Selector ) { if ( null == selector ) { return null ; } if ( selector instanceof com . stratio . crossdata . common . statements . structures . FunctionSelector ) { return co...
org . junit . Assert . assertNull ( com . stratio . connector . elasticsearch . core . engine . utils . SelectorUtils . getSelectorFieldName ( null ) )
testAppConfigWithoutComponentScan ( ) { org . springframework . context . annotation . AnnotationConfigApplicationContext ctx = new org . springframework . context . annotation . AnnotationConfigApplicationContext ( org . springframework . issues . AppConfigWithoutComponentScan . class ) ; org . springframework . issue...
org . junit . Assert . assertNotNull ( dao )
testBackendDomain ( ) { final com . typesafe . config . Config config = com . typesafe . config . ConfigFactory . parseMap ( com . google . common . collect . ImmutableMap . of ( "domain" , "foo" ) ) ; final com . spotify . apollo . environment . ApolloConfig sut = new com . spotify . apollo . environment . ApolloConfi...
org . junit . Assert . assertThat ( sut . backend ( ) , org . hamcrest . Matchers . is ( "foo" ) )
testShouldBeAbleToEnterTextIntoATextAreaBySettingItsValue ( ) { org . openqa . selenium . qtwebkit . nativetests . WebElement textarea = driver . findElement ( org . openqa . selenium . qtwebkit . nativetests . By . id ( "workingArea" ) ) ; textarea . clear ( ) ; java . lang . String cheesy = "brie<sp>and<sp>cheddar" ;...
org . junit . Assert . assertThat ( textarea . getText ( ) , org . hamcrest . Matchers . equalTo ( cheesy ) )
testFromJsonMapping ( ) { final io . vertx . core . json . JsonObject data = this . getJson ( "d10047-mapping.json" ) ; final io . vertx . up . aiki . D10047Obj obj = io . vertx . up . aiki . Ux . fromJson ( data , io . vertx . up . aiki . D10047Obj . class , "d10047" ) ; System . out . println ( obj ) ; "<AssertPlaceH...
org . junit . Assert . assertNotNull ( obj )
getFalse ( ) { "<AssertPlaceHolder>" ; } getFalse ( ) { org . junit . Assert . assertFalse ( com . gs . collections . impl . block . factory . Functions . getFalse ( ) . valueOf ( true ) ) ; }
org . junit . Assert . assertFalse ( com . gs . collections . impl . block . factory . Functions . getFalse ( ) . valueOf ( true ) )
testValidator_pass_for_file_below_limit ( ) { long now = ( ( java . lang . System . currentTimeMillis ( ) ) - ( com . captaindebug . errortrack . validator . FileAgeValidatorTest . MILLIS_IN_TWO_DAYS ) ) + 1000 ; when ( file . lastModified ( ) ) . thenReturn ( now ) ; "<AssertPlaceHolder>" ; } validate ( T ) { boolean ...
org . junit . Assert . assertTrue ( instance . validate ( file ) )
testWithLeafCircular ( ) { org . apache . tools . ant . types . FileSet fs = new org . apache . tools . ant . types . FileSet ( ) ; fs . setDir ( new java . io . File ( "test/buildlist" ) ) ; fs . setIncludes ( "**/build.xml" ) ; buildlist . addFileset ( fs ) ; buildlist . setLeaf ( "F" ) ; buildlist . setOnMissingDesc...
org . junit . Assert . assertEquals ( 2 , files . length )
testSetValue ( ) { org . kie . workbench . common . forms . fields . shared . fieldTypes . basic . selectors . IntegerSelectorOption opt = new org . kie . workbench . common . forms . fields . shared . fieldTypes . basic . selectors . IntegerSelectorOption ( ) ; opt . setValue ( valueB ) ; "<AssertPlaceHolder>" ; } get...
org . junit . Assert . assertSame ( valueB , opt . getValue ( ) )
testParseScriptCfcHarder ( ) { java . lang . String path = "" ; try { path = new java . net . URL ( "file:src/test/resources/cfml/ScriptComponentHarder.cfc" ) . getPath ( ) ; } catch ( java . net . MalformedURLException e ) { e . printStackTrace ( ) ; } cfml . parsing . cfscript . script . CFScriptStatement scriptState...
org . junit . Assert . assertNotNull ( scriptStatement )
testClearBitNegativeInside3 ( ) { java . lang . String as = "-18446744073709551615" ; int number = 2 ; java . math . BigInteger aNumber = new java . math . BigInteger ( as ) ; java . math . BigInteger result = aNumber . clearBit ( number ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ( ( getClass ( ) . getNa...
org . junit . Assert . assertEquals ( as , result . toString ( ) )
testGetDatastoreProperties ( ) { "<AssertPlaceHolder>" ; } getDatastoreProperties ( ) { return null ; }
org . junit . Assert . assertEquals ( datastore , properties . getDatastoreProperties ( ) )
indentWithCommentsTest ( ) { java . util . List < java . lang . String > lines = java . util . Arrays . asList ( "mir;<sp>mit;<sp>1.50<sp>#<sp>p=0.994,<sp>r=0.658,<sp>tp=775,<sp>tn=1173,<sp>fp=5,<sp>fn=403,<sp>178+1000,<sp>2017-10-23" , "nach;<sp>noch;<sp>1.75<sp>#<sp>p=0.990,<sp>r=0.504,<sp>tp=1009,<sp>tn=1990,<sp>fp=...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( expected ) )
testNNTModelShouldGiveCorrectValue ( ) { java . lang . Object actual = d_pm . getModel ( OddsRatioScalePresentation . PROPERTY_NNT ) . getValue ( ) ; java . lang . Object expected = d_orc . getNumberNeededToTreat ( org . drugis . addis . presentation . OddsRatioScalePresentationTest . convert ( d_criterion . getScale (...
org . junit . Assert . assertEquals ( expected , actual )
test_size_5 ( ) { org . trie4j . Trie t = trieWithWords ( "" ) ; "<AssertPlaceHolder>" ; } size ( ) { return orig . size ( ) ; }
org . junit . Assert . assertEquals ( 1 , t . size ( ) )
directExecutorIsUsedByDefaultForDirCacheStores ( ) { com . facebook . buck . artifact_cache . config . ArtifactCacheBuckConfig config = com . facebook . buck . artifact_cache . ArtifactCacheBuckConfigTest . createFromText ( ) ; "<AssertPlaceHolder>" ; } getDirCacheStoreExecutor ( ) { return buckConfig . getEnum ( com ....
org . junit . Assert . assertEquals ( Executor . DIRECT , config . getDirCacheStoreExecutor ( ) )
testHasChangesPhantom ( ) { java . lang . String artistName = "ArtistName" ; org . apache . cayenne . testdo . testmap . Artist artist = ( ( org . apache . cayenne . testdo . testmap . Artist ) ( context . newObject ( "Artist" ) ) ) ; artist . setArtistName ( artistName ) ; context . commitChanges ( ) ; artist . setArt...
org . junit . Assert . assertTrue ( context . hasChanges ( ) )
testRowKeyWithNoGroup ( ) { measurement . withGroups ( java . util . Collections . emptyList ( ) ) ; java . nio . ByteBuffer buffer = java . nio . ByteBuffer . allocate ( 100 ) . put ( org . apache . metron . profiler . hbase . SaltyRowKeyBuilder . getSalt ( measurement . getPeriod ( ) , org . apache . metron . profile...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( expected , actual ) )
testLocalizedTitle ( ) { context . checking ( new org . jmock . Expectations ( ) { { oneOf ( serverConfigurationService ) . getBoolean ( "legacyPageTitleCustom" , true ) ; will ( returnValue ( true ) ) ; one ( activeToolManager ) . getTool ( "toolId" ) ; org . sakaiproject . tool . impl . ToolImpl result = new org . sa...
org . junit . Assert . assertEquals ( "Localized<sp>Title" , page . getTitle ( ) )
testGetAll ( ) { System . out . println ( "test:getAll" ) ; org . glassfish . flashlight . datatree . TreeNode server = setupComplexTree ( ) ; java . util . List < org . glassfish . flashlight . datatree . TreeNode > list = server . getNodes ( "*" , false , true ) ; java . lang . String [ ] expected = new java . lang ....
org . junit . Assert . assertEquals ( expected . length , list . size ( ) )
validateReferenceMappingEnabled ( ) { org . apache . flink . api . java . typeutils . runtime . kryo . KryoSerializer < java . lang . String > serializer = new org . apache . flink . api . java . typeutils . runtime . kryo . KryoSerializer ( java . lang . String . class , new org . apache . flink . api . common . Execu...
org . junit . Assert . assertTrue ( kryo . getReferences ( ) )
testOrderBy ( ) { try { org . talend . dq . dbms . DbmsLanguage dbms = getMysqlDbmsLanguage ( ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( e . getMessage ( ) ) ; } } orderBy ( ) { return "<sp>ORDER<sp>BY<sp>" ; }
org . junit . Assert . assertNotNull ( dbms . orderBy ( ) )
listIterator ( ) { int sum = 0 ; com . gs . collections . api . list . MutableList < java . lang . Integer > integers = this . newWith ( 1 , 2 , 3 , 4 ) ; for ( java . util . Iterator < java . lang . Integer > iterator = integers . listIterator ( ) ; iterator . hasNext ( ) ; ) { java . lang . Integer each = iterator . ...
org . junit . Assert . assertEquals ( 20 , sum )
testMarshallGetSessionTimeCommand ( ) { java . lang . String xmlCommand = "<get-session-time<sp>out-identifier=\"session-currenttime\"/>" ; org . drools . core . command . runtime . GetSessionTimeCommand command = marshaller . unmarshall ( xmlCommand , org . drools . core . command . runtime . GetSessionTimeCommand . c...
org . junit . Assert . assertEquals ( xmlCommand , marshaller . marshall ( command ) )
testNeq ( ) { org . eclipse . rdf4j . query . parser . sparql . SPARQLParser parser1 = new org . eclipse . rdf4j . query . parser . sparql . SPARQLParser ( ) ; org . eclipse . rdf4j . query . parser . sparql . SPARQLParser parser2 = new org . eclipse . rdf4j . query . parser . sparql . SPARQLParser ( ) ; org . eclipse ...
org . junit . Assert . assertTrue ( ( ( normalize . size ( ) ) == 0 ) )
equalsTest1 ( ) { java . lang . Object obj = null ; niciraActionDeserializerKey = new org . opendaylight . openflowjava . nx . api . NiciraActionDeserializerKey ( org . opendaylight . openflowjava . nx . api . NiciraActionDeserializerKeyTest . VERSION , 10 ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) {...
org . junit . Assert . assertFalse ( niciraActionDeserializerKey . equals ( obj ) )
localDate ( ) { java . time . LocalDate localDate = java . time . LocalDate . of ( 2016 , 2 , 24 ) ; javax . ws . rs . ext . ParamConverter < java . time . LocalDate > converter = ( ( javax . ws . rs . ext . ParamConverter < java . time . LocalDate > ) ( provider . getConverter ( localDate . getClass ( ) , localDate . ...
org . junit . Assert . assertEquals ( localDate , converter . fromString ( converter . toString ( localDate ) ) )
testGetValueServiceID ( ) { javax . slee . management . DeployableUnitID duID = new javax . slee . management . DeployableUnitID ( "url" ) ; propertyEditor . setAsText ( duID . toString ( ) ) ; "<AssertPlaceHolder>" ; } getValue ( ) { return value ; }
org . junit . Assert . assertEquals ( duID , propertyEditor . getValue ( ) )
setChargingProfileKind_chargingProfileKindType_chargingProfileKindIsSet ( ) { eu . chargetime . ocpp . model . core . ChargingProfileKindType chargingProfileKindType = eu . chargetime . ocpp . model . core . ChargingProfileKindType . Absolute ; chargingProfile . setChargingProfileKind ( chargingProfileKindType ) ; "<As...
org . junit . Assert . assertThat ( chargingProfile . getChargingProfileKind ( ) , org . hamcrest . CoreMatchers . equalTo ( chargingProfileKindType ) )
testDeleteSecurityRoleTrimParameters ( ) { securityRoleDaoTestHelper . createSecurityRoleEntity ( org . finra . herd . service . SECURITY_ROLE , org . finra . herd . service . DESCRIPTION ) ; org . finra . herd . model . api . xml . SecurityRole securityRole = securityRoleService . deleteSecurityRole ( new org . finra ...
org . junit . Assert . assertEquals ( new org . finra . herd . model . api . xml . SecurityRole ( SECURITY_ROLE , DESCRIPTION ) , securityRole )
testResultsetStartingPositionStartingAtPageTwo ( ) { int position = ( ( org . mifos . application . servicefacade . SavingsServiceFacadeWebTier ) ( savingsServiceFacade ) ) . resultsetOffset ( 2 , 10 ) ; "<AssertPlaceHolder>" ; } resultsetOffset ( int , int ) { return ( currentPage - 1 ) * itemsPerPage ; }
org . junit . Assert . assertEquals ( 10 , position )
testResetToZeroWhenNoListenerIsRunning ( ) { org . uma . jmetal . util . measure . impl . ListenerTimeMeasure measure = new org . uma . jmetal . util . measure . impl . ListenerTimeMeasure ( ) ; org . uma . jmetal . util . measure . MeasureListener < java . lang . Object > original10ms = new org . uma . jmetal . util ....
org . junit . Assert . assertEquals ( 0 , ( ( long ) ( measure . get ( ) ) ) )
testGetDescriptor ( ) { com . eclipsesource . tabris . internal . ui . RemotePage page = new com . eclipsesource . tabris . internal . ui . RemotePage ( ui , uiRenderer , descriptor , mock ( com . eclipsesource . tabris . ui . PageData . class ) ) ; "<AssertPlaceHolder>" ; } getDescriptor ( ) { return descriptor ; }
org . junit . Assert . assertSame ( descriptor , page . getDescriptor ( ) )
testMapCreationWithoutElements ( ) { java . util . Map m = org . mule . runtime . core . privileged . util . MapUtils . mapWithKeysAndValues ( java . util . HashMap . class , ( ( java . util . List ) ( null ) ) , ( ( java . util . List ) ( null ) ) ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return delegate . isEmpty (...
org . junit . Assert . assertTrue ( m . isEmpty ( ) )
addBook ( ) { com . vladmihalcea . flexypool . model . Book book = doInTransaction ( new com . vladmihalcea . flexypool . adaptor . glassfish . AbstractGlassfishIntegrationTest . Callable < com . vladmihalcea . flexypool . model . Book > ( ) { @ com . vladmihalcea . flexypool . adaptor . glassfish . Override public com...
org . junit . Assert . assertNotNull ( connectionLeaseMillisMBean )
testGetConnectionManagerService ( ) { net . holmes . core . common . LocalService < org . fourthline . cling . support . connectionmanager . ConnectionManagerService > connectionManagerService = net . holmes . core . business . streaming . upnp . UpnpUtils . buildConnectionManagerService ( ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertNotNull ( connectionManagerService )
testCanNotMatch ( ) { createLongerExample ( ) ; uk . gov . dstl . baleen . uima . grammar . DependencyNode node1 = uk . gov . dstl . baleen . uima . grammar . DependencyNode . create ( "_NNP" ) ; uk . gov . dstl . baleen . uima . grammar . DependencyNode node2 = uk . gov . dstl . baleen . uima . grammar . DependencyNod...
org . junit . Assert . assertTrue ( match . isEmpty ( ) )
testForMemoryLeaks ( ) { int n = 1000000 ; int count = rx . Observable . range ( 1 , n ) . compose ( com . github . davidmoten . rx . Transformers . toListWhile ( new rx . functions . Func2 < java . util . List < java . lang . Integer > , java . lang . Integer , java . lang . Boolean > ( ) { @ com . github . davidmoten...
org . junit . Assert . assertEquals ( n , count )
testOffsetForChildComponentNameWithGraphAndInvalidPrefix_2 ( ) { net . roboconf . tooling . core . autocompletion . Couple couple = prepare ( "app3" , "initial.instances" , 125 ) ; couple . text += "d" ; java . util . List < net . roboconf . tooling . core . autocompletion . ICompletionProposer . RoboconfCompletionProp...
org . junit . Assert . assertEquals ( 0 , proposals . size ( ) )
testElse4 ( ) { java . lang . String sql = "SELECT<sp>*<sp>FROM<sp>emp/*BEGIN*/<sp>WHERE<sp>/*IF<sp>false*/aaa--<sp>ELSE<sp>AND<sp>deptno<sp>=<sp>10/*END*//*END*/" ; java . lang . String sql2 = "SELECT<sp>*<sp>FROM<sp>emp<sp>WHERE<sp>deptno<sp>=<sp>10" ; jp . co . future . uroborosql . parser . SqlParser parser = new j...
org . junit . Assert . assertEquals ( "1" , sql2 , ctx . getExecutableSql ( ) )
test_setRGBLorg_eclipse_swt_graphics_RGB ( ) { org . eclipse . swt . graphics . RGB rgb = new org . eclipse . swt . graphics . RGB ( 255 , 0 , 0 ) ; fontDialog . setRGB ( rgb ) ; org . eclipse . swt . graphics . RGB rgb2 = fontDialog . getRGB ( ) ; "<AssertPlaceHolder>" ; } setRGB ( org . eclipse . swt . opengl . examp...
org . junit . Assert . assertEquals ( rgb , rgb2 )
shouldStopDownloadingStoredObject ( ) { org . javaswift . joss . model . Container container = account . getContainer ( "x" ) . create ( ) ; org . javaswift . joss . model . StoredObject object = container . getObject ( "y" ) ; object . uploadObject ( new byte [ 100 ] ) ; org . swiftexplorer . gui . util . SwiftOperati...
org . junit . Assert . assertFalse ( true )
isDoneTest ( ) { org . threadly . concurrent . future . ListenableRunnableFutureInterfaceTest . ExecuteOnGetFutureFactory ff = makeFutureFactory ( ) ; org . threadly . test . concurrent . TestRunnable r = new org . threadly . test . concurrent . TestRunnable ( ) ; java . util . concurrent . RunnableFuture < ? > future ...
org . junit . Assert . assertTrue ( future . isDone ( ) )
testDeclaredExtensions ( ) { "<AssertPlaceHolder>" ; } getExtensions ( ) { return java . util . Arrays . asList ( org . sonar . plugins . buildbreaker . ForbiddenConfigurationBreaker . class , org . sonar . plugins . buildbreaker . IssuesSeverityBreaker . class , org . sonar . plugins . buildbreaker . QualityGateBreake...
org . junit . Assert . assertEquals ( 9 , new org . sonar . plugins . buildbreaker . BuildBreakerPlugin ( ) . getExtensions ( ) . size ( ) )
testNoNullElementsCollectionEmptyParameterNull ( ) { com . twelvemonkeys . lang . Collection < ? > collection = com . twelvemonkeys . lang . Collections . emptySet ( ) ; "<AssertPlaceHolder>" ; } noNullElements ( T [ ] , java . lang . String ) { com . twelvemonkeys . lang . Validate . noNullElements ( ( pParameter == n...
org . junit . Assert . assertSame ( collection , com . twelvemonkeys . lang . Validate . noNullElements ( collection , null ) )
testEmptyURI ( ) { final org . apache . hc . client5 . http . classic . methods . HttpGet httpget = new org . apache . hc . client5 . http . classic . methods . HttpGet ( "" ) ; "<AssertPlaceHolder>" ; } getUri ( ) { return uri ; }
org . junit . Assert . assertEquals ( new java . net . URI ( "/" ) , httpget . getUri ( ) )
executeTest ( ) { final boolean isValid = true ; cn . hutool . core . thread . ThreadUtil . execute ( new java . lang . Runnable ( ) { @ cn . hutool . core . thread . Override public void run ( ) { "<AssertPlaceHolder>" ; } } ) ; } run ( ) { for ( int i = 0 ; i < idCountPerThread ; i ++ ) { long id = snowflake . nextId...
org . junit . Assert . assertTrue ( isValid )
testNextTuple ( ) { final int batchSize = 2 + ( this . r . nextInt ( 9 ) ) ; final java . lang . String streamId = backtype . storm . utils . Utils . DEFAULT_STREAM_ID ; final java . lang . String sourceId = "sourceId" ; backtype . storm . generated . Grouping groupingMock = mock ( backtype . storm . generated . Groupi...
org . junit . Assert . assertEquals ( 1 , collector . output . get ( Utils . DEFAULT_STREAM_ID ) . size ( ) )
testCall ( ) { final java . lang . Object value = new java . lang . Object ( ) ; @ javax . ejb . TransactionAttribute ( javax . ejb . TransactionAttributeType . NEVER ) class Bean implements java . util . concurrent . Callable < java . lang . Object > { public java . lang . Object call ( ) { return value ; } } org . os...
org . junit . Assert . assertSame ( value , bean . getInterfaceOrClass ( java . util . concurrent . Callable . class ) . call ( ) )
blankParamValues ( ) { when ( request . getParameterValues ( "paramName" ) ) . thenReturn ( null ) ; com . psddev . dari . util . StorageItem storageItem = com . psddev . dari . util . StorageItemFilter . getParameter ( request , "paramName" , null ) ; "<AssertPlaceHolder>" ; reset ( request ) ; } getParameter ( javax ...
org . junit . Assert . assertTrue ( ( storageItem == null ) )
testUnmarshalJson ( ) { com . cflint . config . CFLintConfig config = com . cflint . config . ConfigUtils . unmarshalJson ( input1 , com . cflint . config . CFLintConfig . class ) ; "<AssertPlaceHolder>" ; } isInheritParent ( ) { return inheritParent ; }
org . junit . Assert . assertFalse ( config . isInheritParent ( ) )
createBoundedHashSetWithCollectionTest ( ) { java . util . List < java . lang . Integer > list = java . util . Arrays . asList ( 1 , 2 , 3 , 4 , 5 , 6 ) ; com . iota . iri . utils . collections . impl . BoundedHashSet < java . lang . Integer > boundedSet = new com . iota . iri . utils . collections . impl . BoundedHash...
org . junit . Assert . assertEquals ( new java . util . HashSet ( java . util . Arrays . asList ( 1 , 2 , 3 , 4 ) ) , boundedSet )
shouldReturnFalseWhenQueryingIfInfiniteWithFiniteAutomaton ( ) { dk . brics . automaton . Automaton finiteAutomaton = dk . brics . automaton . Automaton . makeChar ( 'a' ) . repeat ( 5 , 5 ) ; com . mifmif . common . regex . Generex generex = new com . mifmif . common . regex . Generex ( finiteAutomaton ) ; boolean inf...
org . junit . Assert . assertThat ( infinite , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( false ) ) )
testEvaluateIndexingSpecification_SolrClassic ( ) { opts . hbaseIndexerZkHost = null ; opts . hbaseTableName = "mytable" ; opts . hbaseIndexerConfigFile = new java . io . File ( com . google . common . io . Resources . getResource ( getClass ( ) , "user_indexer.xml" ) . toURI ( ) ) ; opts . zkHost = null ; opts . colle...
org . junit . Assert . assertEquals ( expectedSpec , opts . getIndexingSpecification ( ) )
validate_shouldPassIfTheDuplicateCodeIsForATermFromAnotherConceptSource ( ) { org . openmrs . ConceptReferenceTerm term = new org . openmrs . ConceptReferenceTerm ( ) ; term . setName ( "unique<sp>name" ) ; term . setCode ( "2332523" ) ; term . setConceptSource ( org . openmrs . api . context . Context . getConceptServ...
org . junit . Assert . assertEquals ( false , errors . hasErrors ( ) )
testUpdatePublishInfoById ( ) { long id = randomInsert ( ) ; java . lang . String random = randomString ( ) ; migrationClusterDao . updatePublishInfoById ( id , random ) ; com . ctrip . xpipe . redis . console . model . MigrationClusterTbl byId = migrationClusterDao . getById ( id ) ; "<AssertPlaceHolder>" ; } getPubli...
org . junit . Assert . assertEquals ( random , byId . getPublishInfo ( ) )
mustNotIdentifyAsPrefixWhenShorter ( ) { com . offbynull . actors . address . Address other = com . offbynull . actors . address . Address . of ( "one" , "two" , "three" ) ; com . offbynull . actors . address . Address fixture = com . offbynull . actors . address . Address . of ( "one" , "two" ) ; "<AssertPlaceHolder>"...
org . junit . Assert . assertFalse ( other . isPrefixOf ( fixture ) )
testUpdate ( ) { com . jmethods . catatumbo . entities . LongId entity = new com . jmethods . catatumbo . entities . LongId ( ) ; entity . setField1 ( "Test<sp>for<sp>Batch<sp>Update" ) ; entity = com . jmethods . catatumbo . DatastoreBatchTest . em . insert ( entity ) ; entity = com . jmethods . catatumbo . DatastoreB...
org . junit . Assert . assertTrue ( "Updated" . equals ( entity2 . getField1 ( ) ) )
testIsLockedAndReadOnly_ForLockOwnerWithNodeLockType ( ) { when ( lockService . getLockStatus ( nodeRef ) ) . thenReturn ( LockStatus . LOCK_OWNER ) ; when ( lockService . getLockType ( nodeRef ) ) . thenReturn ( LockType . NODE_LOCK ) ; boolean returnedVal = org . alfresco . repo . lock . LockUtils . isLockedAndReadOn...
org . junit . Assert . assertEquals ( true , returnedVal )
testExecuteASync ( ) { org . locationtech . udig . project . command . CommandManager manager = new org . locationtech . udig . project . command . CommandManager ( "test" , new org . locationtech . udig . project . internal . commands . DefaultErrorHandler ( ) , new org . locationtech . udig . project . command . Comm...
org . junit . Assert . assertTrue ( result . ran )
testSerialization ( ) { org . jfree . chart . needle . ArrowNeedle n1 = new org . jfree . chart . needle . ArrowNeedle ( false ) ; org . jfree . chart . needle . ArrowNeedle n2 = ( ( org . jfree . chart . needle . ArrowNeedle ) ( org . jfree . chart . TestUtilities . serialised ( n1 ) ) ) ; "<AssertPlaceHolder>" ; } eq...
org . junit . Assert . assertTrue ( n1 . equals ( n2 ) )
testGetFieldNotNull ( ) { org . apache . flink . api . java . tuple . Tuple2 < java . lang . String , java . lang . Integer > tuple = new org . apache . flink . api . java . tuple . Tuple2 ( "Test<sp>case" , null ) ; "<AssertPlaceHolder>" ; tuple . getFieldNotNull ( 1 ) ; }
org . junit . Assert . assertEquals ( "Test<sp>case" , tuple . getFieldNotNull ( 0 ) )
testWrongOption ( ) { mFileSystem . createDirectory ( new alluxio . AlluxioURI ( "/testDir" ) ) ; int ret = mFsShell . run ( "test" , "-dfesz" , "/testDir" ) ; "<AssertPlaceHolder>" ; } run ( alluxio . job . JobConfig , int , alluxio . conf . AlluxioConfiguration ) { alluxio . retry . CountingRetry retryPolicy = new al...
org . junit . Assert . assertEquals ( ( - 1 ) , ret )
testSetCurrentDataTypeRowWhenCurrentUUIDIsNotBlank ( ) { final elemental2 . dom . Element element1 = fakeDataTypeRow ( "uuid1" ) ; final elemental2 . dom . Element element2 = fakeDataTypeRow ( "uuid2" ) ; doReturn ( "" ) . when ( view ) . getCurrentUUID ( ) ; doReturn ( "uuid1" ) . when ( view ) . getPreviousUUID ( ) ;...
org . junit . Assert . assertEquals ( element1 , actualElement . get ( ) )
fromFiles_Collection_null ( ) { try { net . coobird . thumbnailator . Thumbnails . fromFiles ( ( ( java . util . Collection < java . io . File > ) ( null ) ) ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . NullPointerException e ) { "<AssertPlaceHolder>" ; throw e ; } } fromFiles ( java . lang . Iterable ...
org . junit . Assert . assertEquals ( "Cannot<sp>specify<sp>null<sp>for<sp>input<sp>files." , e . getMessage ( ) )
upgradeFundingsToV21Test ( ) { javax . xml . bind . JAXBContext jaxbContext1 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jaxb . model . record . summary_v2 . Fundings . class ) ; javax . xml . bind . JAXBContext jaxbContext2 = javax . xml . bind . JAXBContext . newInstance ( org . orcid . jaxb . mo...
org . junit . Assert . assertEquals ( v21Fundings1 , v21Fundings2 )
executeRequestShouldWork3 ( ) { org . apache . http . client . methods . HttpGet request = new org . apache . http . client . methods . HttpGet ( "http://michael-simons.eu" ) ; org . apache . http . HttpResponse r = org . mockito . Mockito . mock ( org . apache . http . HttpResponse . class , Mockito . RETURNS_DEEP_STU...
org . junit . Assert . assertNotNull ( oembedService . executeRequest ( request ) )
testDynamicQueryByPrimaryKeyMissing ( ) { com . liferay . portal . kernel . dao . orm . DynamicQuery dynamicQuery = com . liferay . portal . kernel . dao . orm . DynamicQueryFactoryUtil . forClass ( com . liferay . asset . list . model . AssetListEntry . class , _dynamicQueryClassLoader ) ; dynamicQuery . add ( com . l...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testEnvmapperConsumer ( ) { java . io . File wsdl = getCodegenQEDataFileInput ( "s_envMapper" 5 ) ; testArgs = new java . lang . String [ ] { "s_envMapper" 2 , "s_envMapper" 8 , "-genType" , "Consumer" , "-wsdl" , wsdl . getAbsolutePath ( ) , "s_envMapper" 9 , ( destDir . getAbsolutePath ( ) ) + "/src" , "-dest" , dest...
org . junit . Assert . assertTrue ( consumerFile . exists ( ) )
shouldPass ( ) { com . qcadoo . model . api . Entity operationalTask = mockOperationalTask ( com . qcadoo . mes . operationalTasks . validators . OperationalTaskValidatorsTest . OTHER_TASK_TYPE , "some<sp>name" , com . qcadoo . mes . operationalTasks . validators . OperationalTaskValidatorsTest . EARLIER_DATE , com . q...
org . junit . Assert . assertTrue ( isValid )
generateDirContent_SnapshotMetadataWith2Versions ( ) { final org . commonjava . indy . content . StoreResource resource = setupSnapshotDirWith2Snapshots ( ) ; final org . commonjava . maven . galley . event . EventMetadata emd = new org . commonjava . maven . galley . event . EventMetadata ( ) ; final java . util . Lis...
org . junit . Assert . assertThat ( result . size ( ) , org . hamcrest . CoreMatchers . equalTo ( 3 ) )
testEquals_sameFilename ( ) { java . lang . String newFilename = "Filename" ; jobMeta . setFilename ( newFilename ) ; "<AssertPlaceHolder>" ; } testEquals ( java . lang . String , org . pentaho . di . repository . RepositoryDirectoryInterface , org . pentaho . di . repository . ObjectRevision , java . lang . String ) {...
org . junit . Assert . assertFalse ( testEquals ( null , null , null , newFilename ) )
testCreateWithNoSupportType ( ) { java . util . Optional < com . gh . mygreen . xlsmapper . fieldaccessor . LabelGetter > labelGetter = getterFactory . create ( com . gh . mygreen . xlsmapper . fieldaccessor . LabelGetterFactoryTest . ByMapField . NoSupportTypeRecord . class , "test" ) ; "<AssertPlaceHolder>" . isEmpty...
org . junit . Assert . assertThat ( labelGetter )
testDefineDataSource ( ) { org . eclipse . birt . data . engine . api . DataEngine testEngine = new org . eclipse . birt . data . engine . impl . DataEngineImpl ( org . eclipse . birt . data . engine . api . DataEngineContext . newInstance ( DataEngineContext . DIRECT_PRESENTATION , null , null , null ) ) ; testEngine ...
org . junit . Assert . assertTrue ( ( meta != null ) )
testOutOfMemory ( ) { java . lang . OutOfMemoryError error = null ; try { java . lang . Object result = nom . tam . util . nom . tam . util . TestArrayFuncs . generateArray ( long . class , new int [ ] { Integer . MAX_VALUE , Integer . MAX_VALUE , Integer . MAX_VALUE } ) ; } catch ( java . lang . OutOfMemoryError error...
org . junit . Assert . assertNotNull ( error )
text ( ) { java . lang . String para = "?signature=d919cc8a6361597afa536e906156262cc9cd93df&timestamp=1433903433&nonce=518016546" ; xmlSb . delete ( 0 , xmlSb . length ( ) ) ; xmlSb . append ( "<xml>" ) ; xmlSb . append ( "<ToUserName><![CDATA[toUser]]></ToUserName>" ) ; xmlSb . append ( "<FromUserName><![CDATA[fromUse...
org . junit . Assert . assertNotNull ( response )
shearFollowingTranslate ( ) { g2 . setTransform ( new java . awt . geom . AffineTransform ( ) ) ; g2 . translate ( 10.0 , 20.0 ) ; g2 . shear ( 2.0 , 3.0 ) ; "<AssertPlaceHolder>" ; } getTransform ( ) { return ( ( java . awt . geom . AffineTransform ) ( this . transform . clone ( ) ) ) ; }
org . junit . Assert . assertEquals ( new java . awt . geom . AffineTransform ( 1 , 3 , 2 , 1 , 10 , 20 ) , g2 . getTransform ( ) )
testReadMissingMetadata ( ) { final com . allanbank . mongodb . bson . builder . DocumentBuilder fileResult = com . allanbank . mongodb . bson . builder . BuilderFactory . start ( ) ; fileResult . addString ( "_id" , "id" ) ; final com . allanbank . mongodb . bson . builder . DocumentBuilder chunkResult = com . allanba...
org . junit . Assert . assertArrayEquals ( new byte [ ] { 1 , 2 , 3 , 4 } , sink . toByteArray ( ) )
loadLeftModel ( ) { org . apache . kylin . metadata . model . DataModelDesc model = org . apache . kylin . metadata . model . DataModelManager . getInstance ( getTestConfig ( ) ) . getDataModelDesc ( "ci_left_join_model" ) ; "<AssertPlaceHolder>" ; } getDataModelDesc ( java . lang . String ) { try ( org . apache . kyli...
org . junit . Assert . assertNotNull ( model )
testGetFrameworkId_Gets_Value_From_Element ( ) { when ( element . getFrameworkId ( ) ) . thenReturn ( "FRAMEWORK" ) ; mmarquee . automation . uiautomation . IUIAutomation mocked_automation = org . mockito . Mockito . mock ( mmarquee . automation . uiautomation . IUIAutomation . class ) ; mmarquee . automation . UIAutom...
org . junit . Assert . assertTrue ( name . equals ( "FRAMEWORK" ) )
testStringBytes ( ) { java . lang . Class < com . j256 . ormlite . field . types . StringBytesTypeTest . LocalStringBytes > clazz = com . j256 . ormlite . field . types . StringBytesTypeTest . LocalStringBytes . class ; com . j256 . ormlite . dao . Dao < com . j256 . ormlite . field . types . StringBytesTypeTest . Loca...
org . junit . Assert . assertEquals ( 1 , dao . create ( foo ) )
itShouldNotBeCreatedWhenDefaultStrategyIsNotActiveAndCrucial ( ) { io . datakernel . rpc . client . sender . helper . RpcClientConnectionPoolStub pool = new io . datakernel . rpc . client . sender . helper . RpcClientConnectionPoolStub ( ) ; io . datakernel . rpc . client . sender . helper . RpcSenderStub connection1 =...
org . junit . Assert . assertNull ( typeDispatchingStrategy . createSender ( pool ) )
testFilterNoHostsWhenNoPortsExposed ( ) { "<AssertPlaceHolder>" ; com . vmware . admiral . compute . container . ContainerDescriptionService . ContainerDescription desc = createDescription ( false ) ; createContainer ( desc , initialHostLinks . get ( 0 ) ) ; createContainer ( desc , initialHostLinks . get ( 1 ) ) ; cre...
org . junit . Assert . assertEquals ( 3 , initialHostLinks . size ( ) )
testConvertFromAvroLogicalTimeMillis ( ) { org . talend . components . common . config . jdbc . TalendType expectedType = TalendType . INTEGER ; org . apache . avro . Schema fieldSchema = org . talend . daikon . avro . AvroUtils . _logicalTime ( ) ; "<AssertPlaceHolder>" ; } convertFromAvro ( org . apache . avro . Sche...
org . junit . Assert . assertEquals ( expectedType , org . talend . components . common . config . jdbc . TalendType . convertFromAvro ( fieldSchema ) )
testMultipleStreamCloseNoError ( ) { com . streamsets . pipeline . lib . io . fileref . ChecksumCalculatingWrapperStream < java . io . InputStream > stream = null ; final java . util . concurrent . atomic . AtomicInteger atomicInteger = new java . util . concurrent . atomic . AtomicInteger ( 0 ) ; final com . streamset...
org . junit . Assert . assertEquals ( 1 , atomicInteger . get ( ) )
test54 ( ) { net . pms . formats . AU aU0 = new net . pms . formats . AU ( ) ; java . lang . String [ ] str_array1 = aU0 . getSupportedExtensions ( ) ; "<AssertPlaceHolder>" ; } getSupportedExtensions ( ) { return new java . lang . String [ ] { "ogg" , "ogm" , "ogv" } ; }
org . junit . Assert . assertNotNull ( str_array1 )
wrappedThrowsWithoutTimeout ( ) { okio . Sink sink = new okio . ForwardingSink ( new okio . Buffer ( ) ) { @ okio . Override public void write ( okio . Buffer source , long byteCount ) throws java . io . IOException { throw new java . io . IOException ( "no<sp>timeout<sp>occurred" ) ; } } ; okio . AsyncTimeout timeout ...
org . junit . Assert . assertEquals ( "no<sp>timeout<sp>occurred" , expected . getMessage ( ) )
testGetContents3 ( ) { nl . siegmann . epublib . domain . Book book = new nl . siegmann . epublib . domain . Book ( ) ; nl . siegmann . epublib . domain . Resource resource1 = new nl . siegmann . epublib . domain . Resource ( "id1" , "Hello,<sp>world<sp>!" . getBytes ( ) , "chapter1.html" , nl . siegmann . epublib . se...
org . junit . Assert . assertEquals ( 2 , book . getContents ( ) . size ( ) )
testCreateLogicalRouterApiException ( ) { resource . configure ( "NiciraNvpResource" , parameters ) ; when ( nvpApi . createLogicalRouter ( ( ( com . cloud . network . nicira . LogicalRouter ) ( any ( ) ) ) ) ) . thenThrow ( new com . cloud . network . nicira . NiciraNvpApiException ( ) ) ; final com . cloud . legacymo...
org . junit . Assert . assertFalse ( clra . getResult ( ) )
testMatch4 ( ) { java . lang . System . setProperty ( "config.file" , "src/test/resources/test.conf" ) ; com . typesafe . config . ConfigFactory . invalidateCaches ( ) ; final com . typesafe . config . Config config = com . typesafe . config . ConfigFactory . load ( ) ; final com . joliciel . talismane . TalismaneSessi...
org . junit . Assert . assertEquals ( 0 , patternMatches . size ( ) )
testGetSourceDimensions ( ) { "<AssertPlaceHolder>" ; } getSourceDimensions ( ) { return ( numCol ) - 1 ; }
org . junit . Assert . assertEquals ( transform . getSourceDimensions ( ) , 2 )
testLegacyGetGroupNames ( ) { org . apache . hadoop . mapred . Counters counters = new org . apache . hadoop . mapred . Counters ( ) ; counters . findCounter ( "fs1" , FileSystemCounter . BYTES_READ ) . increment ( 1 ) ; counters . findCounter ( "fs2" , FileSystemCounter . BYTES_READ ) . increment ( 1 ) ; counters . in...
org . junit . Assert . assertEquals ( expectedGroups , groups )
testDeriveSeverityMid3 ( ) { java . util . Map < java . lang . String , org . hawkular . apm . api . model . analytics . CommunicationSummaryStatistics > nodes = new java . util . HashMap < java . lang . String , org . hawkular . apm . api . model . analytics . CommunicationSummaryStatistics > ( ) ; org . hawkular . ap...
org . junit . Assert . assertEquals ( 2 , css . getSeverity ( ) )
testGetBackground ( ) { org . eclipse . nebula . widgets . grid . GridItem item = new org . eclipse . nebula . widgets . grid . GridItem ( grid , org . eclipse . swt . SWT . NONE ) ; org . eclipse . swt . graphics . Color background = new org . eclipse . swt . graphics . Color ( display , 0 , 0 , 255 ) ; item . setBack...
org . junit . Assert . assertSame ( background , item . getBackground ( ) )
testGid ( ) { java . nio . file . Path file = java . nio . file . Files . createFile ( root . resolve ( "file" ) ) ; java . lang . Integer gid = ( ( java . lang . Integer ) ( java . nio . file . Files . getAttribute ( file , "unix:gid" ) ) ) ; "<AssertPlaceHolder>" ; } resolve ( com . github . sbridges . ephemeralfs . ...
org . junit . Assert . assertTrue ( ( gid > 0 ) )
testStreamSourceEstimatedSizeBytes ( ) { org . apache . beam . sdk . io . gcp . bigquery . BigQueryStorageStreamSource < com . google . api . services . bigquery . model . TableRow > streamSource = org . apache . beam . sdk . io . gcp . bigquery . BigQueryStorageStreamSource . create ( com . google . cloud . bigquery ....
org . junit . Assert . assertEquals ( 0 , streamSource . getEstimatedSizeBytes ( options ) )
testNulls ( ) { com . couchbase . jdbc . JDBCTestUtils . setConnection ( null ) ; com . couchbase . jdbc . JDBCTestUtils . deleteDataFromBucket ( "default" ) ; org . json . simple . JSONObject obj = new org . json . simple . JSONObject ( ) ; org . json . simple . JSONObject jsonObjNew = new org . json . simple . JSONOb...
org . junit . Assert . assertEquals ( obj , jsonObjNew )
deveObterValorSeguroComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemProduto produto = new com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoItemProduto ( ) ; final java . math . BigDecimal valorSeguro = new java . math . BigDecimal ( "99999999999...
org . junit . Assert . assertEquals ( "999999999999.99" , produto . getValorSeguro ( ) )
testGetResultUrlwAppendableRowSetRequest ( ) { org . sagebionetworks . repo . model . table . AppendableRowSetRequest request = new org . sagebionetworks . repo . model . table . AppendableRowSetRequest ( ) ; request . setEntityId ( tableId ) ; org . sagebionetworks . client . AsynchJobType type = AsynchJobType . Table...
org . junit . Assert . assertEquals ( actual , expected )
testFindByPrimaryKeyExisting ( ) { com . liferay . dynamic . data . mapping . model . DDMFormInstance newDDMFormInstance = addDDMFormInstance ( ) ; com . liferay . dynamic . data . mapping . model . DDMFormInstance existingDDMFormInstance = _persistence . findByPrimaryKey ( newDDMFormInstance . getPrimaryKey ( ) ) ; "<...
org . junit . Assert . assertEquals ( existingDDMFormInstance , newDDMFormInstance )