input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testCloneNull ( ) { final java . lang . Object test = org . apache . commons . lang3 . SerializationUtils . clone ( null ) ; "<AssertPlaceHolder>" ; } clone ( java . io . Serializable ) { return org . apache . commons . lang3 . SerializationUtils . deserialize ( org . apache . commons . lang3 . SerializationUtils . ser...
org . junit . Assert . assertNull ( test )
testJitter ( ) { net . openhft . affinity . Affinity . setAffinity ( 2 ) ; "<AssertPlaceHolder>" ; int samples = 100000 ; int count = 0 ; long [ ] time = new long [ samples ] ; long [ ] length = new long [ samples ] ; net . openhft . ticker . impl . JNIClock clock = JNIClock . INSTANCE ; long start = clock . ticks ( ) ...
org . junit . Assert . assertEquals ( 2 , net . openhft . affinity . Affinity . getCpu ( ) )
testFindTask_unassigned ( ) { com . hp . alm . ali . idea . tasks . HpAlmRepository repository = new com . hp . alm . ali . idea . tasks . HpAlmRepository ( ) ; com . intellij . tasks . Task task = repository . findTask ( "defect<sp>#86" ) ; "<AssertPlaceHolder>" ; } findTask ( java . lang . String ) { if ( ! ( _assign...
org . junit . Assert . assertNull ( task )
test_lombok_annotation_logging ( ) { com . godaddy . logging . AnnotatedLombokObject annotatedLombokObject = new com . godaddy . logging . AnnotatedLombokObject ( ) ; logger . with ( annotatedLombokObject ) . info ( "Lombok<sp>Logging" ) ; java . lang . String expectedLogMessage = "Lombok<sp>Logging;<sp>AnnotatedLombok...
org . junit . Assert . assertEquals ( actualLogMessage , expectedLogMessage )
testTwoPointersToSameInstanceArray ( ) { com . cedarsoftware . util . TestGraphComparator . Node X = new com . cedarsoftware . util . TestGraphComparator . Node ( "X" ) ; com . cedarsoftware . util . TestGraphComparator . Node Y = new com . cedarsoftware . util . TestGraphComparator . Node ( "Y" ) ; com . cedarsoftware...
org . junit . Assert . assertEquals ( 2 , deltas . size ( ) )
testGetDirty ( ) { com . moviejukebox . tools . GitRepositoryStateTest . LOG . info ( "getDirty" ) ; java . lang . Boolean result = com . moviejukebox . tools . GitRepositoryStateTest . instance . getDirty ( ) ; "<AssertPlaceHolder>" ; } getDirty ( ) { return dirty ; }
org . junit . Assert . assertNotNull ( result )
testAddOfDisabledDependencyToDisabledSchema ( ) { org . apache . directory . server . core . schema . MetaSchemaHandlerIT . connection . modify ( "cn=nis,ou=schema" , new org . apache . directory . api . ldap . model . entry . DefaultModification ( org . apache . directory . api . ldap . model . entry . ModificationOpe...
org . junit . Assert . assertTrue ( dependencies . contains ( "mozilla" ) )
computeFactor_WholeBillingPeriodForMonth ( ) { long startTimeUsage = org . oscm . test . DateTimeHandling . calculateMillis ( "2012-01-01<sp>00:00:00" ) ; long endTimeUsage = org . oscm . test . DateTimeHandling . calculateMillis ( "2012-01-31<sp>23:59:59" ) ; org . oscm . billingservice . service . model . BillingInpu...
org . junit . Assert . assertEquals ( 1 , factor , 0 )
getActive_shouldReturnFalseIfNotVoidedAndDateEarlierThanStartDate ( ) { org . openmrs . PatientState patientState = new org . openmrs . PatientState ( ) ; patientState . setStartDate ( leftRange ) ; patientState . setEndDate ( rightRange ) ; patientState . setVoided ( false ) ; boolean active = patientState . getActive...
org . junit . Assert . assertFalse ( active )
testSetIncomingClientFrequencyWithZeroDestinationFrequency ( ) { flex . messaging . config . ThrottleSettings ts = new flex . messaging . config . ThrottleSettings ( ) ; ts . setIncomingDestinationFrequency ( 0 ) ; ts . setIncomingClientFrequency ( 10 ) ; "<AssertPlaceHolder>" ; } getIncomingClientFrequency ( ) { retur...
org . junit . Assert . assertEquals ( 10 , ts . getIncomingClientFrequency ( ) )
testValidate ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
testVarAndArgs_Struct ( ) { final java . lang . String cfcSrc = "<cfcomponent>\r\n" + ( ( ( ( "<cffunction<sp>name=\"test\">\r\n" + "\t<cfargument<sp>name=\"page\"<sp>default=\"\">\r\n" ) + "\t<cfset<sp>variables.instance.page<sp>=<sp>arguments.page<sp>/>\r\n" ) + "</cffunction>\r\n" ) + "</cfcomponent>" ) ; com . cfli...
org . junit . Assert . assertEquals ( lintresult . getIssues ( ) . toString ( ) , 0 , lintresult . getIssues ( ) . size ( ) )
testParentWithoutNameParts ( ) { com . cloudera . csd . descriptors . MetricEntityTypeDescriptor entity2 = mockEntity ( "foobar_entity_two" ) ; doReturn ( com . google . common . collect . ImmutableList . of ( "foobar_entity_two" ) ) . when ( entity ) . getParentMetricEntityTypeNames ( ) ; addEntity ( entity ) ; addEnt...
org . junit . Assert . assertTrue ( validator . validate ( context , entity , root ) . isEmpty ( ) )
backsOffForServiceUnavailable ( ) { final org . apache . hc . core5 . http . HttpResponse resp = new org . apache . hc . core5 . http . message . BasicHttpResponse ( org . apache . hc . core5 . http . HttpStatus . SC_SERVICE_UNAVAILABLE , "Service<sp>Unavailable" ) ; "<AssertPlaceHolder>" ; } shouldBackoff ( java . lan...
org . junit . Assert . assertTrue ( impl . shouldBackoff ( resp ) )
testGetSku ( ) { ecommerceItem . setSku ( "sku" ) ; "<AssertPlaceHolder>" ; } getSku ( ) { return sku ; }
org . junit . Assert . assertEquals ( "sku" , ecommerceItem . getSku ( ) )
testStrategy_UniqueNumber ( ) { final com . btc . redg . models . ColumnModel cm = new com . btc . redg . models . ColumnModel ( ) ; cm . setNotNull ( true ) ; cm . setUnique ( true ) ; final com . btc . redg . runtime . defaultvalues . DefaultDefaultValueStrategy strategy = new com . btc . redg . runtime . defaultvalu...
org . junit . Assert . assertEquals ( i , ( ( int ) ( strategy . getDefaultValue ( cm , com . btc . redg . runtime . defaultvalues . Integer . class ) ) ) )
testGetImageInstance ( ) { org . eclipse . emf . ecore . EObject instance = createInstanceForExpectedClass ( ) ; ( ( com . archimatetool . editor . ui . factory . AbstractObjectUIProvider ) ( provider ) ) . setInstance ( instance ) ; org . eclipse . swt . graphics . Image image = provider . getImage ( ) ; "<AssertPlace...
org . junit . Assert . assertNotNull ( image )
descendingCollectionSizeCompare ( ) { org . eclipse . collections . api . list . MutableList < java . util . List < java . lang . Integer > > list = org . eclipse . collections . impl . list . mutable . FastList . newListWith ( org . eclipse . collections . impl . list . Interval . oneTo ( 1 ) , org . eclipse . collect...
org . junit . Assert . assertEquals ( org . eclipse . collections . impl . list . mutable . FastList . < org . eclipse . collections . api . list . MutableList < java . lang . Integer > > newListWith ( org . eclipse . collections . impl . list . mutable . FastList . newListWith ( 1 , 2 , 3 ) , org . eclipse . collectio...
remove_nested_number_node ( ) { com . redhat . lightblue . util . ModifyDocTest . doc . modify ( new com . redhat . lightblue . util . Path ( "x.y" ) , com . redhat . lightblue . util . ModifyDocTest . factory . numberNode ( 1 ) , true ) ; com . redhat . lightblue . util . ModifyDocTest . doc . modify ( new com . redha...
org . junit . Assert . assertNull ( com . redhat . lightblue . util . ModifyDocTest . doc . get ( new com . redhat . lightblue . util . Path ( "x.y" ) ) )
TupleIndexRecordFindNot_5 ( ) { org . apache . jena . tdb2 . store . tupletable . TupleIndex index = create ( "SPO" ) ; org . apache . jena . tdb2 . store . tupletable . AbstractTestTupleIndex . add ( index , n1 , n2 , n3 ) ; org . apache . jena . tdb2 . store . tupletable . AbstractTestTupleIndex . add ( index , n1 , ...
org . junit . Assert . assertFalse ( iter . hasNext ( ) )
testGetQuarks_begin ( ) { java . util . List < java . lang . Integer > list = org . eclipse . tracecompass . lttng2 . kernel . core . tests . analysis . kernel . statesystem . StateSystemTest . fixture . getQuarks ( "*" , "1577" , Attributes . EXEC_NAME ) ; "<AssertPlaceHolder>" ; } size ( ) { fLock . lock ( ) ; try { ...
org . junit . Assert . assertEquals ( 1 , list . size ( ) )
multiplicationMultipliesCorrectlyWithSameUnitsWithoutMultiples ( ) { javax . measure . Quantity < ? > actual = TWO_OHM . multiply ( TWO_OHM ) ; tec . uom . se . quantity . LongQuantity < ? > expected = createQuantity ( 4L , tec . uom . se . quantity . LongQuantityTest . SQUARE_OHM ) ; "<AssertPlaceHolder>" ; } createQu...
org . junit . Assert . assertEquals ( expected , actual )
testStarNameWrongParentType ( ) { org . apache . jackrabbit . oak . spi . state . NodeState root = new org . apache . jackrabbit . oak . plugins . memory . MemoryNodeStore ( ) . getRoot ( ) ; org . apache . jackrabbit . oak . spi . state . NodeBuilder builder = root . builder ( ) ; org . apache . jackrabbit . oak . spi...
org . junit . Assert . assertTrue ( actual . isEmpty ( ) )
testGetChildModules_emptyList ( ) { org . eclipse . wst . server . core . IModule [ ] childModules = delegate . getChildModules ( new org . eclipse . wst . server . core . IModule [ 0 ] ) ; "<AssertPlaceHolder>" ; } getChildModules ( org . eclipse . wst . server . core . IModule [ ] ) { if ( ( module == null ) || ( ( m...
org . junit . Assert . assertEquals ( 0 , childModules . length )
testGetLanguagesList ( ) { System . out . println ( "getLanguagesList" ) ; net . sourceforge . pmd . util . database . DBURI instance = new net . sourceforge . pmd . util . database . DBURI ( net . sourceforge . pmd . util . database . DBURITest . C_ORACLE_OCI_2 ) ; java . util . List < java . lang . String > expResult...
org . junit . Assert . assertEquals ( expResult , result )
getParentNode_parentNodeIsTheSameAsParent ( ) { com . vaadin . flow . dom . Element element = com . vaadin . flow . dom . ElementFactory . createDiv ( ) ; com . vaadin . flow . dom . Element child = com . vaadin . flow . dom . ElementFactory . createDiv ( ) ; element . appendChild ( child ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertEquals ( child . getParent ( ) , child . getParentNode ( ) )
testGetAllAgency ( ) { java . util . List < cn . im47 . cms . common . entity . agency . Agency > agencies = agencyMapper . getAll ( ) ; "<AssertPlaceHolder>" ; } getAll ( ) { return this . getAll ( 0 , aticleLimit , "id" , "DESC" ) ; }
org . junit . Assert . assertEquals ( 2 , agencies . size ( ) )
should_apply_comparator_IsNotNull ( ) { final java . lang . String name = "findByNameIsNotNull" ; final java . lang . String expected = "select<sp>e<sp>from<sp>Simple<sp>e<sp>" + "where<sp>e.name<sp>IS<sp>NOT<sp>NULL" ; java . lang . String result = org . apache . deltaspike . data . impl . builder . part . QueryRoot ....
org . junit . Assert . assertEquals ( expected , result )
testEquals_empty ( ) { java . lang . Object obj = new java . lang . Object ( ) ; boolean result = iterator . equals ( obj ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ( this ) == obj ) { return true ; } if ( ! ( super . equals ( obj ) ) ) { return false ; } if ( ! ( obj instanceof org . eclipse ...
org . junit . Assert . assertFalse ( result )
testSelectRejectedPredicate ( ) { org . apache . commons . collections4 . Predicate < java . lang . Integer > predicate = new org . apache . commons . collections4 . functors . ComparatorPredicate < java . lang . Integer > ( 10 , org . apache . commons . collections4 . ComparatorUtils . < java . lang . Integer > natura...
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . contains ( 1 , 5 , 10 , 1 , 3 ) )
testBlocking ( ) { int count = testBlocking ( 2000 , 6000 ) ; "<AssertPlaceHolder>" ; } is ( int ) { return ( get ( ) ) == err ; }
org . junit . Assert . assertThat ( count , org . hamcrest . CoreMatchers . is ( 6000 ) )
deveObterValorSeguroComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemProduto produto = new com . fincatto . documentofiscal . nfe310 . classes . nota . NFNotaInfoItemProduto ( ) ; final java . math . BigDecimal valorSeguro = new java . math . BigDecimal ( "99999999999...
org . junit . Assert . assertEquals ( "999999999999.99" , produto . getValorSeguro ( ) )
testAdminCountFirehoseItemsAuthorizeNode ( ) { store . setNodeConfValue ( org . buddycloud . channelserver . db . jdbc . TEST_SERVER1_NODE1_ID , Conf . ACCESS_MODEL , AccessModels . authorize . toString ( ) ) ; int firehoseItemCount = store . getFirehoseItemCount ( true , org . buddycloud . channelserver . db . jdbc . ...
org . junit . Assert . assertEquals ( 5 , firehoseItemCount )
testNullInitialization ( ) { org . dashbuilder . displayer . client . widgets . filter . TimeInstantEditor timeInstantEditor = new org . dashbuilder . displayer . client . widgets . filter . TimeInstantEditor ( timeInstantView , timeAmountEditor ) ; timeInstantEditor . init ( null , changeCommand ) ; "<AssertPlaceHolde...
org . junit . Assert . assertEquals ( timeInstantView , timeInstantEditor . view )
interfaceExcludeSelf ( ) { for ( java . lang . Class < ? > type : nl . jqno . equalsverifier . internal . reflection . SuperclassIterable . of ( nl . jqno . equalsverifier . internal . reflection . SuperclassIterableTest . SimpleInterface . class ) ) { actual . add ( type ) ; } "<AssertPlaceHolder>" ; } of ( java . lan...
org . junit . Assert . assertEquals ( emptyList ( ) , actual )
testCancelOrderIsSuccessful ( ) { final byte [ ] encoded = java . nio . file . Files . readAllBytes ( java . nio . file . Paths . get ( com . gazbert . bxbot . exchanges . TestGeminiExchangeAdapter . ORDER_CANCEL_JSON_RESPONSE ) ) ; final com . gazbert . bxbot . exchanges . AbstractExchangeAdapter . ExchangeHttpRespons...
org . junit . Assert . assertTrue ( success )
validateAfterSerializingExistingContainer ( ) { org . digidoc4j . impl . bdoc . Container container = org . digidoc4j . test . util . TestDataBuilderUtil . open ( "src/test/resources/testFiles/valid-containers/valid-bdoc-tm.bdoc" ) ; this . serialize ( container , this . serializedContainerLocation ) ; org . digidoc4j ...
org . junit . Assert . assertTrue ( deserializedContainer . validate ( ) . isValid ( ) )
constant ( ) { "<AssertPlaceHolder>" ; } run ( java . io . File ) { javax . tools . JavaCompiler javac = com . sun . tools . javac . api . JavacTool . create ( ) ; javax . tools . DiagnosticListener < javax . tools . JavaFileObject > errorListener = createErrorListener ( ) ; try ( javax . tools . StandardJavaFileManage...
org . junit . Assert . assertEquals ( 3 , run ( b . constant ( 3 ) ) )
testCheckDouble_Ok ( ) { double l = net . sf . qualitycheck . NumberInRange . checkDouble ( java . lang . Double . valueOf ( 4.1 ) ) ; "<AssertPlaceHolder>" ; } checkDouble ( java . lang . Number ) { net . sf . qualitycheck . Check . notNull ( number , "number" ) ; if ( ! ( net . sf . qualitycheck . NumberInRange . isI...
org . junit . Assert . assertEquals ( 4.1 , l , 0.0 )
sequenceWithWordHasWordAsTerminatingElement ( ) { com . maxgarfinkel . suffixTree . Word word = new com . maxgarfinkel . suffixTree . Word ( "Test<sp>word" ) ; com . maxgarfinkel . suffixTree . Sequence < java . lang . Character , com . maxgarfinkel . suffixTree . Word > sequence = new com . maxgarfinkel . suffixTree ....
org . junit . Assert . assertThat ( terminal . getSequence ( ) , org . hamcrest . CoreMatchers . is ( word ) )
testContainsWord2NullD ( ) { dictionary . edit ( ) ; testObj . setDictionary ( null ) ; "<AssertPlaceHolder>" ; } containsWord ( java . lang . String ) { checkLemmaIsNotNull ( lemma ) ; for ( net . sf . extjwnl . data . Word word : words ) { if ( word . getLemma ( ) . equalsIgnoreCase ( lemma ) ) { return true ; } } re...
org . junit . Assert . assertFalse ( testObj . containsWord ( "test" ) )
testUploadDirectory ( ) { org . finra . herd . model . dto . S3FileTransferRequestParamsDto s3FileTransferRequestParamsDto = new org . finra . herd . model . dto . S3FileTransferRequestParamsDto ( ) ; org . finra . herd . model . dto . S3FileTransferResultsDto s3FileTransferResultsDto = new org . finra . herd . model ....
org . junit . Assert . assertEquals ( s3FileTransferResultsDto , result )
testVertexIndex ( ) { com . tinkerpop . blueprints . impls . orient . OrientGraph g = com . gentics . mesh . graphdb . orientdb . EdgeIndexPerformanceTest . factory . getTx ( ) ; System . out . println ( ( "Size:<sp>" + ( g . getVertexType ( "item" ) . getClassIndex ( "item" ) . getSize ( ) ) ) ) ; try { long start = j...
org . junit . Assert . assertTrue ( vertices . iterator ( ) . hasNext ( ) )
ParseSubjectFromMessageWhenSubjectNull ( ) { gov . hhs . fha . nhinc . patientcorrelation . nhinc . parsers . PRPAIN201301UV . PRPAIN201301UVParser parser = new gov . hhs . fha . nhinc . patientcorrelation . nhinc . parsers . PRPAIN201301UV . PRPAIN201301UVParser ( ) ; org . hl7 . v3 . PRPAIN201301UV02 message = new or...
org . junit . Assert . assertNull ( subject1 )
testSmallerAndLargerParseCommand ( ) { java . io . ByteArrayInputStream inputStream = new java . io . ByteArrayInputStream ( "SMALLER<sp>5<sp>LARGER<sp>3\n" . getBytes ( ) ) ; com . icegreen . greenmail . imap . ImapRequestLineReader reader = new com . icegreen . greenmail . imap . ImapRequestLineReader ( inputStream ,...
org . junit . Assert . assertEquals ( expectedTerm , searchTerm )
testOngeldigeHeaderInBericht ( ) { final nl . bzk . migratiebrp . bericht . model . lo3 . factory . Lo3BerichtFactory factory = new nl . bzk . migratiebrp . bericht . model . lo3 . factory . Lo3BerichtFactory ( ) ; final nl . bzk . migratiebrp . bericht . model . lo3 . Lo3Bericht bericht = factory . getBericht ( "00000...
org . junit . Assert . assertTrue ( ( bericht instanceof nl . bzk . migratiebrp . bericht . model . lo3 . impl . OngeldigBericht ) )
testNextPopulatedWithoutCallingHasNext ( ) { java . util . List < java . lang . String > testList = java . util . Arrays . asList ( "abc" , "bcd" , "cde" ) ; com . googlecode . cqengine . resultset . filter . FilteringIterator < java . lang . String > iterator = new com . googlecode . cqengine . resultset . filter . Fi...
org . junit . Assert . assertThat ( iterator . next ( ) , org . hamcrest . CoreMatchers . is ( "abc" ) )
testParseSuperErr ( ) { actions = new java . util . HashMap < java . lang . String , java . lang . String > ( ) { { put ( "aaa" , "bbb" ) ; } } ; target = new org . o3project . odenos . core . component . network . flow . query . OFPFlowActionPopMplsQuery ( actions ) ; "<AssertPlaceHolder>" ; } parse ( ) { if ( ! ( sup...
org . junit . Assert . assertThat ( target . parse ( ) , org . hamcrest . CoreMatchers . is ( false ) )
testQueryListAllShardsBuilder ( ) { java . lang . String address = null ; java . lang . Integer id = 1 ; com . ctrip . platform . dal . dao . sqlbuilder . FreeSelectSqlBuilder < java . util . List < com . ctrip . platform . dal . dao . shard . DalQueryDaoTest . ClientTestModel > > query = new com . ctrip . platform . d...
org . junit . Assert . assertTrue ( ( ( l . size ( ) ) > 0 ) )
test304ResponseGeneratedFromCacheIncludesContentLocationIfOriginResponseDid ( ) { final org . apache . hc . core5 . http . ClassicHttpRequest req1 = new org . apache . hc . core5 . http . message . BasicClassicHttpRequest ( "GET" , "/" ) ; originResponse . setHeader ( "Cache-Control" , "max-age=3600" ) ; originResponse...
org . junit . Assert . assertNotNull ( result . getFirstHeader ( "Content-Location" ) )
zouGeenMeldingMoetenGevenOmdatErGeenOuderBetrokkenhedenZijn ( ) { java . util . List < nl . bzk . brp . model . validatie . Melding > meldingen = brby0126 . executeer ( relatieModel , relatieBericht , null ) ; "<AssertPlaceHolder>" ; verify ( persoonRepository , never ( ) ) . findByBurgerservicenummer ( isA ( nl . bzk ...
org . junit . Assert . assertThat ( meldingen . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testFileUploadWithNoFile ( ) { addPageRequest ( "http://test.com" , newHtml ( "Test<sp>Page" , newForm ( "form" ) . method ( "POST" 0 ) . id ( "form" ) . enctype ( "multipart/form-data" ) . addFileInput ( "fileUpload" , null ) ) ) ; addPageRequest ( "POST" , "http://test.com/form" , newHtml ( "OK" , "" ) ) ; com . gist...
org . junit . Assert . assertEquals ( "OK" , response . getTitle ( ) )
testCompile ( ) { java . util . regex . Pattern p = java . util . regex . Pattern . compile ( "^|}<sp>.*" ) ; java . util . regex . Matcher m = p . matcher ( "'''bold'''" ) ; "<AssertPlaceHolder>" ; } compile ( java . lang . String ) { try { regex . GrepSun . pattern = java . util . regex . Pattern . compile ( pat ) ; ...
org . junit . Assert . assertNotNull ( m )
testReplaceSystemDiskRequest ( ) { try { com . fit2cloud . aliyun . ecs . model . request . ReplaceSystemDiskRequest r = new com . fit2cloud . aliyun . ecs . model . request . ReplaceSystemDiskRequest ( "InstanceId" , "ImageId" ) ; com . fit2cloud . aliyun . ecs . model . response . ReplaceSystemDiskResponse response =...
org . junit . Assert . assertTrue ( true )
testInsecureSourceWithDisconnectedChannel ( ) { final java . net . InetSocketAddress remoteAddress = new java . net . InetSocketAddress ( "192.168.1.22" , 2727 ) ; final org . restcomm . media . core . network . deprecated . channel . NetworkChannel channel = org . mockito . Mockito . mock ( org . restcomm . media . co...
org . junit . Assert . assertFalse ( secure )
shouldHandleMap ( ) { org . junit . Assume . assumeThat ( version , org . hamcrest . core . StringStartsWith . startsWith ( "v3" ) ) ; final java . util . Map < java . lang . Object , java . lang . Object > o = new java . util . LinkedHashMap ( ) ; o . put ( "string<sp>key" , "string<sp>value" ) ; o . put ( 1 , 1 ) ; o...
org . junit . Assert . assertEquals ( o , serializeDeserialize ( mapper , o , java . util . Map . class ) )
convertToCharacterNull ( ) { java . lang . Character c = null ; java . lang . Character c2 = converter . toCharacter ( c ) ; "<AssertPlaceHolder>" ; } toCharacter ( java . lang . Long ) { if ( value == null ) { return null ; } if ( ( value < ( Character . MIN_VALUE ) ) || ( value > ( Character . MAX_VALUE ) ) ) { throw...
org . junit . Assert . assertNull ( c2 )
testUnrecognizedCommandDataBodyState ( ) { com . dumbster . smtp . SmtpRequest request = new com . dumbster . smtp . SmtpRequest ( SmtpActionType . UNRECOG , null , SmtpState . DATA_BODY ) ; com . dumbster . smtp . SmtpResponse response = request . execute ( ) ; "<AssertPlaceHolder>" ; } getCode ( ) { return code ; }
org . junit . Assert . assertThat ( response . getCode ( ) , org . hamcrest . Matchers . is ( ( - 1 ) ) )
testTestReportQuery ( ) { be . fedict . eid . applet . beta . TestReportEntity testReportEntity = new be . fedict . eid . applet . beta . TestReportEntity ( "javaVersion" , "javaVendor" , "osName" , "osArch" , "osVersion" , "userAgent" , "navigatorAppName" , "navigatorAppVersion" , "navigatorUserAgent" ) ; this . entit...
org . junit . Assert . assertEquals ( 1 , resultList . size ( ) )
testGetIconFileNameSaveProjectNonMavenModules ( ) { when ( mockedProject . hasPermission ( AbstractProject . CONFIGURE ) ) . thenReturn ( true ) ; when ( mockedPlugin . getSaveModuleConfiguration ( ) ) . thenReturn ( false ) ; hudson . plugins . jobConfigHistory . JobConfigHistoryProjectAction sut = createAction ( ) ; ...
org . junit . Assert . assertEquals ( JobConfigHistoryConsts . ICONFILENAME , sut . getIconFileName ( ) )
testToVOUserSubscription_NullSubscription ( ) { org . oscm . internal . vo . VOUserSubscription sub = org . oscm . subscriptionservice . assembler . SubscriptionAssembler . toVOUserSubscription ( null , platformUser , facade , PerformanceHint . ALL_FIELDS ) ; "<AssertPlaceHolder>" ; } toVOUserSubscription ( org . oscm ...
org . junit . Assert . assertNull ( sub )
checkMessageMethod ( ) { java . lang . String str = "test" ; info . smart_tools . smartactors . morph_expressions . parser . exception . SyntaxException exception = new info . smart_tools . smartactors . morph_expressions . parser . exception . SyntaxException ( str ) ; "<AssertPlaceHolder>" ; throw exception ; } getMe...
org . junit . Assert . assertEquals ( exception . getMessage ( ) , str )
testStripQueryWithNull ( ) { java . net . URL url = null ; java . net . URL result = au . gov . ga . worldwind . common . util . URLUtil . stripQuery ( url ) ; "<AssertPlaceHolder>" ; } stripQuery ( java . net . URL ) { if ( ( url == null ) || ( ( url . getQuery ( ) ) == null ) ) { return url ; } try { java . lang . St...
org . junit . Assert . assertNull ( result )
setIndent_remove ( ) { biweekly . io . xml . XCalOutputProperties properties = new biweekly . io . xml . XCalOutputProperties ( ) ; properties . setIndent ( 1 ) ; properties . setIndent ( null ) ; java . util . Map < java . lang . String , java . lang . String > expected = new java . util . HashMap < java . lang . Stri...
org . junit . Assert . assertEquals ( expected , properties )
testAttributePredicate ( ) { int uriCnt = populateDocuments ( ) ; com . hazelcast . core . HazelcastInstance hz = repos [ 0 ] . getHzInstance ( ) ; com . hazelcast . core . IMap < com . bagri . core . DocumentKey , com . bagri . core . model . Document > xddCache = hz . getMap ( com . bagri . server . hazelcast . predi...
org . junit . Assert . assertEquals ( uriCnt , maps . size ( ) )
testPredefinedProject ( ) { org . springframework . ide . vscode . commons . java . IJavaProject p = createPredefinedMavenProject ( "tricky-getters-boot-1.3.1-app" ) ; org . springframework . ide . vscode . commons . java . IType type = p . getIndex ( ) . findType ( "demo.DemoApplication" ) ; "<AssertPlaceHolder>" ; } ...
org . junit . Assert . assertNotNull ( type )
testDecimal ( ) { com . aliyun . odps . tunnel . TableTunnel tunnel = com . aliyun . odps . commons . transport . OdpsTestUtils . newTableTunnel ( odps ) ; com . aliyun . odps . tunnel . TableTunnel . UploadSession session = tunnel . createUploadSession ( odps . getDefaultProject ( ) , com . aliyun . odps . DecimalTest...
org . junit . Assert . assertEquals ( record2 . getDecimal ( 0 ) , decimal )
shouldNotExecuteWhenTheresATimeOut ( ) { final org . openspotlight . common . util . test . ExampleInterface newInstance = org . openspotlight . common . util . TimeOutFactory . createTimedOutObject ( org . openspotlight . common . util . test . ExampleInterface . class , 250 , new org . openspotlight . common . util ....
org . junit . Assert . assertThat ( newInstance . isFinalized ( ) , org . hamcrest . core . Is . is ( true ) )
clinsigLabels ( ) { org . opencb . commons . datastore . core . QueryResponse < java . lang . String > queryResponse = cellBaseClient . getClinicalClient ( ) . clinsigLabels ( ) ; "<AssertPlaceHolder>" ; } clinsigLabels ( ) { org . opencb . commons . datastore . core . QueryResponse < java . lang . String > queryRespon...
org . junit . Assert . assertTrue ( ( ( queryResponse . allResults ( ) . size ( ) ) > 0 ) )
testFiltersWithOR ( ) { org . apache . hadoop . hbase . TableName tn = org . apache . hadoop . hbase . TableName . valueOf ( name . getMethodName ( ) ) ; org . apache . hadoop . hbase . filter . Table table = org . apache . hadoop . hbase . filter . TestFilterListOnMini . TEST_UTIL . createTable ( tn , new java . lang ...
org . junit . Assert . assertEquals ( 2 , rr . size ( ) )
testFieldIsReadonlyWhenFieldGroupIsReadonly ( ) { startEdit ( ) ; grid . getEditorFieldGroup ( ) . setReadOnly ( true ) ; com . vaadin . v7 . ui . Field < ? > field = grid . getColumn ( com . vaadin . v7 . tests . server . component . grid . GridEditorTest . PROPERTY_NAME ) . getEditorField ( ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertTrue ( field . isReadOnly ( ) )
listenerTest ( ) { final java . util . concurrent . CountDownLatch awaitLatch = new java . util . concurrent . CountDownLatch ( 1 ) ; io . netty . bootstrap . Bootstrap bootstrap = client ( ) ; io . netty . channel . Channel channel = bootstrap . connect ( com . navercorp . pinpoint . plugin . netty . NettyIT . webServ...
org . junit . Assert . assertTrue ( await )
testEmbeddedWebAPIConfig ( ) { org . glassfish . tests . embedded . web . WebListener testListener = org . glassfish . tests . embedded . web . EmbeddedAddServletTest . embedded . createWebListener ( "test-listener" , org . glassfish . tests . embedded . web . HttpListener . class ) ; testListener . setPort ( 9090 ) ; ...
org . junit . Assert . assertTrue ( testvs )
shouldMakeContextAvailable ( ) { org . neo4j . kernel . api . proc . Key < java . lang . String > someKey = key ( "someKey" , java . lang . String . class ) ; procs . register ( new org . neo4j . kernel . api . proc . CallableProcedure . BasicProcedure ( signature ) { @ org . neo4j . kernel . impl . proc . Override pub...
org . junit . Assert . assertThat ( asList ( result ) , org . hamcrest . Matchers . contains ( org . hamcrest . CoreMatchers . equalTo ( new java . lang . Object [ ] { "hello,<sp>world" } ) ) )
testSearchPost ( ) { ca . uhn . fhir . jaxrs . server . example . Bundle response = ca . uhn . fhir . jaxrs . server . example . JaxRsPatientProviderDstu3Test . client . search ( ) . forResource ( "Patient" ) . usingStyle ( SearchStyleEnum . POST ) . returnBundle ( ca . uhn . fhir . jaxrs . server . example . Bundle . ...
org . junit . Assert . assertTrue ( ( ( response . getEntry ( ) . size ( ) ) > 0 ) )
testEquals_neqEmailDiff ( ) { com . google . appengine . api . users . User user1 = new com . google . appengine . api . users . User ( "abc" , "xyz" ) ; com . google . appengine . api . users . User user2 = new com . google . appengine . api . users . User ( "def" , "xyz" ) ; "<AssertPlaceHolder>" ; } equals ( java . ...
org . junit . Assert . assertFalse ( user1 . equals ( user2 ) )
testNoFilter ( ) { org . neo4j . graphalgo . impl . DijkstraTest . edgeBlackList . clear ( ) ; final org . neo4j . graphalgo . impl . yens . WeightedPath weightedPath = dijkstra ( ) ; "<AssertPlaceHolder>" ; System . out . println ( ( "weightedPath<sp>=<sp>" + weightedPath ) ) ; } size ( ) { return size ; }
org . junit . Assert . assertEquals ( 5 , weightedPath . size ( ) )
testFilteredAnswer ( ) { org . batfish . specifier . MockSpecifierContext ctxt = org . batfish . specifier . MockSpecifierContext . builder ( ) . setConfigs ( com . google . common . collect . ImmutableMap . of ( "c" , _c ) ) . build ( ) ; com . google . common . collect . Multiset < org . batfish . datamodel . table ....
org . junit . Assert . assertThat ( rows , org . hamcrest . Matchers . equalTo ( expected ) )
testEquals_1 ( ) { final org . apache . shindig . gadgets . oauth2 . persistence . OAuth2Client obj = new org . apache . shindig . gadgets . oauth2 . persistence . OAuth2Client ( org . apache . shindig . gadgets . oauth2 . MockUtils . getDummyEncrypter ( ) ) ; obj . setAuthorizationUrl ( MockUtils . AUTHORIZE_URL ) ; o...
org . junit . Assert . assertTrue ( result )
testNoNullElementsArrayEmptyParameterNull ( ) { java . lang . Object [ ] array = new java . lang . Object [ 0 ] ; "<AssertPlaceHolder>" ; } noNullElements ( T [ ] , java . lang . String ) { com . twelvemonkeys . lang . Validate . noNullElements ( ( pParameter == null ? null : java . util . Arrays . asList ( pParameter ...
org . junit . Assert . assertSame ( array , com . twelvemonkeys . lang . Validate . noNullElements ( array , null ) )
testReadlineWithBigBuffer ( ) { java . lang . String myMessage = "{this<sp>is<sp>my<sp>message}\r\n" ; byte [ ] bytes = myMessage . getBytes ( Charsets . UTF_8 ) ; java . io . InputStream stream = new java . io . ByteArrayInputStream ( bytes ) ; com . twitter . hbc . common . DelimitedStreamReader r = new com . twitter...
org . junit . Assert . assertEquals ( msg , myMessage . trim ( ) )
getConceptByMapping_shouldReturnNullIfNoMappingExists ( ) { org . openmrs . Concept concept = conceptService . getConceptByMapping ( "A<sp>random<sp>concept<sp>code" , "SSTRM" ) ; "<AssertPlaceHolder>" ; } getConceptByMapping ( java . lang . String , java . lang . String ) { return org . openmrs . api . context . Conte...
org . junit . Assert . assertNull ( concept )
shouldRemovePropertyNameFromLoadedPropertiesAndMapWhenRemoveIsCalled ( ) { final uk . gov . gchq . gaffer . data . element . ElementValueLoader elementLoader = mock ( uk . gov . gchq . gaffer . data . element . ElementValueLoader . class ) ; final uk . gov . gchq . gaffer . data . element . Properties properties = new ...
org . junit . Assert . assertEquals ( propertyValue , properties . get ( propertyName ) )
testCheckUser2 ( ) { System . out . println ( "checkUser" ) ; java . lang . String user = "a" ; java . lang . String pass = "a" ; testPackage . mockTestUserToDB instance = new testPackage . mockTestUserToDB ( ) ; boolean expResult = true ; boolean result = instance . checkUser2 ( user , pass ) ; "<AssertPlaceHolder>" ;...
org . junit . Assert . assertEquals ( expResult , result )
testFormatGreaterThan99Percent ( ) { hudson . plugins . view . dashboard . test . TestStatisticsPortlet instance = new hudson . plugins . view . dashboard . test . TestStatisticsPortlet ( "test" , false , null , null , null , false ) ; java . text . DecimalFormat df = new java . text . DecimalFormat ( "0%" ) ; double v...
org . junit . Assert . assertEquals ( expResult , result )
responseMessageOnErrorOnManualCommandShouldPauseTheCommunicator ( ) { com . willwinder . universalgcodesender . connection . Connection connection = mock ( com . willwinder . universalgcodesender . connection . Connection . class ) ; instance . setConnection ( connection ) ; cb . add ( "G0" ) ; cb . add ( "G0" ) ; inst...
org . junit . Assert . assertTrue ( instance . isPaused ( ) )
testRecoveryInit ( ) { com . arjuna . ats . internal . jts . orbspecific . jacorb . recoverycoordinators . JacOrbRCServiceInit init = new com . arjuna . ats . internal . jts . orbspecific . jacorb . recoverycoordinators . JacOrbRCServiceInit ( ) ; "<AssertPlaceHolder>" ; com . arjuna . ats . internal . jts . orbspecifi...
org . junit . Assert . assertFalse ( init . startRCservice ( ) )
asArrayWithSingleSlot ( ) { java . lang . String [ ] expected = new java . lang . String [ ] { "hey" } ; java . lang . String [ ] actual = cut . asArray ( "hey" ) ; "<AssertPlaceHolder>" ; } asArray ( java . lang . String ) { return value . split ( "," ) ; }
org . junit . Assert . assertArrayEquals ( expected , actual )
subsequence_constructor_should_return_subsequence ( ) { for ( int len = 0 ; len < 100 ; len ++ ) { au . edu . wehi . idsv . debruijn . PackedSequence seq = new au . edu . wehi . idsv . debruijn . PackedSequence ( B ( S ( au . edu . wehi . idsv . debruijn . RANDOM ) . substring ( 0 , len ) ) , false , false ) ; for ( in...
org . junit . Assert . assertEquals ( seq . toString ( ) . substring ( i , ( i + j ) ) , subseq . toString ( ) )
testSmallNumberScriptBased ( ) { final java . lang . String cfcSrc = "component<sp>{\r\n" + ( ( ( "public<sp>void<sp>function<sp>someFunction(argumentOne,<sp>argumentTwo,<sp>argumentThree)<sp>{\r\n" + "\tvar<sp>a<sp>=<sp>1;\r\n" ) + "}\r\n" ) + "}" ) ; com . cflint . api . CFLintResult lintresult = cfBugs . scan ( cfcS...
org . junit . Assert . assertEquals ( 0 , result . size ( ) )
testNewLogger ( ) { final nl . bzk . migratiebrp . util . common . logging . Logger logger = nl . bzk . migratiebrp . util . common . logging . LoggerFactory . getLogger ( ) ; "<AssertPlaceHolder>" ; nl . bzk . migratiebrp . util . common . logging . LoggerFactoryTest . LOG . info ( "LOG<sp>doet<sp>het" ) ; } getName (...
org . junit . Assert . assertEquals ( this . getClass ( ) . getName ( ) , logger . getName ( ) )
test_asm_groups_get ( ) { com . sendgrid . SendGrid sg = new com . sendgrid . SendGrid ( "SENDGRID_API_KEY" , true ) ; sg . setHost ( "localhost:4010" ) ; sg . addRequestHeader ( "X-Mock" , "200" ) ; com . sendgrid . Request request = new com . sendgrid . Request ( ) ; request . setMethod ( Method . GET ) ; request . s...
org . junit . Assert . assertEquals ( 200 , response . getStatusCode ( ) )
testGetPort ( ) { System . out . println ( "getPort" ) ; com . espirit . moddev . cli . commands . server . AbstractServerCommand instance = createTestling ( ) ; java . lang . Integer expResult = 8000 ; java . lang . Integer result = instance . getPort ( ) ; "<AssertPlaceHolder>" ; } getPort ( ) { return port ; }
org . junit . Assert . assertEquals ( expResult , result )
testReplaceQuery3 ( ) { java . lang . String expected = "http://localhost:8080?name1=xyz" ; java . net . URI uri = javax . ws . rs . core . UriBuilder . fromPath ( "http://localhost:8080" ) . queryParam ( "name" , "x=" , "y?" , "x<sp>y" , "&" ) . replaceQuery ( "name1=xyz" ) . build ( ) ; "<AssertPlaceHolder>" ; } toSt...
org . junit . Assert . assertEquals ( expected , uri . toString ( ) )
connectorThatThrowExceptionFailPolicyOnTaskOutput ( ) { final org . bonitasoft . engine . expression . Expression dataDefaultValue = new org . bonitasoft . engine . expression . ExpressionBuilder ( ) . createConstantStringExpression ( "NaN" ) ; final org . bonitasoft . engine . bpm . process . impl . ProcessDefinitionB...
org . junit . Assert . assertEquals ( 1 , connectorInstances . getCount ( ) )
testRegisterOrganizationSupplierInvalidUserDataPhoneCheckRollback ( ) { int orgCount = getOrganizationCount ( ) ; final org . oscm . domobjects . Organization organization = new org . oscm . domobjects . Organization ( ) ; organization . setOrganizationId ( organizationId ) ; final org . oscm . internal . vo . VOUserDe...
org . junit . Assert . assertEquals ( orgCount , orgCountAfter )
testHistogramNoMatch ( ) { com . codahale . metrics . Histogram h = com . streamsets . datacollector . metrics . MetricsConfigurator . createHistogram5Min ( com . streamsets . datacollector . execution . alerts . TestMetricRuleEvaluator . metrics , "testHistogramNoMatch" , com . streamsets . datacollector . execution ....
org . junit . Assert . assertNull ( gauge )
testModelSearch ( ) { repositoryServer . perform ( get ( "/api/v1/search/models?expression=" ) . with ( userCreator ) ) . andExpect ( status ( ) . isOk ( ) ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { org . eclipse . vorto . repository . core . impl . StorageItem item = storage . get ( key ) ; if ( ( it...
org . junit . Assert . assertTrue ( true )
bytesToLong ( ) { long longIn = new java . util . Random ( ) . nextLong ( ) ; byte [ ] bytes = com . splicemachine . primitives . Bytes . longToBytes ( longIn ) ; long longOut = com . splicemachine . primitives . Bytes . bytesToLong ( bytes , 0 ) ; "<AssertPlaceHolder>" ; } bytesToLong ( byte [ ] , int ) { long value =...
org . junit . Assert . assertEquals ( longIn , longOut )
testVoorkomenVoorvoegselCorrect ( ) { final nl . bzk . brp . bijhouding . business . stappen . resultaat . Resultaat resultaat = berichtVerrijkingsStap . voerStapUit ( bouwVoorvoegselTestBericht ( "van<sp>de" , "<sp>" ) , bouwBerichtContext ( "" ) ) ; verify ( referentieDataRepository , times ( 1 ) ) . bestaatVoorvoegs...
org . junit . Assert . assertEquals ( 0 , resultaat . getMeldingen ( ) . size ( ) )